From 1afc3b48a196888028d8e49c5957f50669d79a4c Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sat, 2 Dec 2017 14:27:49 +0100 Subject: [PATCH] - removed Q_filelength which is no longer being used. --- src/cmdlib.cpp | 20 -------------------- src/cmdlib.h | 1 - 2 files changed, 21 deletions(-) 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);