From 1c6e0291d4c31c73f8474b5ec658de9f8e55a6d8 Mon Sep 17 00:00:00 2001 From: uis Date: Fri, 3 May 2024 02:54:25 +0300 Subject: [PATCH] Remove dead code --- tools/quake2/qdata_heretic2/common/cmdlib.c | 9 --------- tools/quake2/qdata_heretic2/tmix.c | 4 ++++ tools/quake3/common/aselib.c | 16 ---------------- 3 files changed, 4 insertions(+), 25 deletions(-) diff --git a/tools/quake2/qdata_heretic2/common/cmdlib.c b/tools/quake2/qdata_heretic2/common/cmdlib.c index c42a10d2..6a49e950 100644 --- a/tools/quake2/qdata_heretic2/common/cmdlib.c +++ b/tools/quake2/qdata_heretic2/common/cmdlib.c @@ -84,15 +84,6 @@ void *SafeMalloc( size_t n, char *desc ){ return p; } -#if defined( __linux__ ) || defined( __BSD__ ) || defined( __APPLE__ ) -void strlwr( char *conv_str ){ - int i; - - for ( i = 0; i < strlen( conv_str ); i++ ) - conv_str[i] = tolower( conv_str[i] ); -} -#endif - // set these before calling CheckParm int myargc; diff --git a/tools/quake2/qdata_heretic2/tmix.c b/tools/quake2/qdata_heretic2/tmix.c index 58cc369f..8abbcc4a 100644 --- a/tools/quake2/qdata_heretic2/tmix.c +++ b/tools/quake2/qdata_heretic2/tmix.c @@ -24,6 +24,10 @@ #define MAXFILES 2048 +#if defined( __linux__ ) || defined( __BSD__ ) || defined( __APPLE__ ) +#define strlwr strlower +#endif + typedef struct { int x; diff --git a/tools/quake3/common/aselib.c b/tools/quake3/common/aselib.c index 1d1c5915..b6360bfa 100644 --- a/tools/quake3/common/aselib.c +++ b/tools/quake3/common/aselib.c @@ -113,22 +113,6 @@ static char gl_filename[1024]; static void ASE_Process( void ); static void ASE_FreeGeomObject( int ndx ); -#if defined( __linux__ ) || defined( __BSD__ ) || defined( __APPLE__ ) - -static char* strlwr( char* string ){ - char *cp; - for ( cp = string; *cp; ++cp ) - { - if ( 'A' <= *cp && *cp <= 'Z' ) { - *cp += 'a' - 'A'; - } - } - - return string; -} - -#endif - /* ** ASE_Load */