diff --git a/src/cmdlib.cpp b/src/cmdlib.cpp index 3c2e7e280..f2d4389d1 100644 --- a/src/cmdlib.cpp +++ b/src/cmdlib.cpp @@ -145,26 +145,6 @@ void ReplaceString (char **ptr, const char *str) */ -//========================================================================== -// -// Q_filelength -// -//========================================================================== - -int Q_filelength (FILE *f) -{ - int pos; - int end; - - pos = ftell (f); - fseek (f, 0, SEEK_END); - end = ftell (f); - fseek (f, pos, SEEK_SET); - - return end; -} - - //========================================================================== // // FileExists diff --git a/src/cmdlib.h b/src/cmdlib.h index e2119ed8a..f168cb910 100644 --- a/src/cmdlib.h +++ b/src/cmdlib.h @@ -18,7 +18,6 @@ // the dec offsetof macro doesnt work very well... #define myoffsetof(type,identifier) ((size_t)&((type *)alignof(type))->identifier - alignof(type)) -int Q_filelength (FILE *f); bool FileExists (const char *filename); bool DirExists(const char *filename); bool DirEntryExists (const char *pathname);