From bb9739647d586b1a316dcb6f6151522b5f21cbeb Mon Sep 17 00:00:00 2001 From: Bradley Bell Date: Fri, 26 Jul 2002 20:11:03 +0000 Subject: [PATCH] oops --- misc/fileutil.c | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/misc/fileutil.c b/misc/fileutil.c index 3e96c8e2..55f82b5f 100644 --- a/misc/fileutil.c +++ b/misc/fileutil.c @@ -17,26 +17,12 @@ COPYRIGHT 1993-1999 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED. #endif #include -#include -#include -#include #include "fileutil.h" #include "fix.h" #include "byteswap.h" #include "error.h" -int filelength(int fd) -{ - int cur_pos, end_pos; - - cur_pos = lseek(fd, 0, SEEK_CUR); - lseek(fd, 0, SEEK_END); - end_pos = lseek(fd, 0, SEEK_CUR); - lseek(fd, cur_pos, SEEK_SET); - return end_pos; -} - byte file_read_byte(FILE *fp) { byte b; -- 2.39.2