From c40e0b3e57052736bd3778c93db0c3789cd00fb2 Mon Sep 17 00:00:00 2001 From: Timothee 'TTimo' Besset Date: Sun, 15 Apr 2012 11:24:38 -0500 Subject: [PATCH] unused --- tools/quake3/common/cmdlib.c | 24 ------------------------ tools/quake3/common/cmdlib.h | 2 -- 2 files changed, 26 deletions(-) diff --git a/tools/quake3/common/cmdlib.c b/tools/quake3/common/cmdlib.c index 3c01cc99..94c260d3 100644 --- a/tools/quake3/common/cmdlib.c +++ b/tools/quake3/common/cmdlib.c @@ -252,30 +252,6 @@ char *ExpandPath( const char *path ){ return full; } -char *ExpandGamePath( const char *path ){ - static char full[1024]; - if ( path[0] == '/' || path[0] == '\\' || path[1] == ':' ) { - strcpy( full, path ); - return full; - } - sprintf( full, "%s%s", gamedir, path ); - return full; -} - -char *ExpandPathAndArchive( const char *path ){ - char *expanded; - char archivename[1024]; - - expanded = ExpandPath( path ); - - if ( archive ) { - sprintf( archivename, "%s/%s", archivedir, path ); - QCopyFile( expanded, archivename ); - } - return expanded; -} - - char *copystring( const char *s ){ char *b; b = safe_malloc( strlen( s ) + 1 ); diff --git a/tools/quake3/common/cmdlib.h b/tools/quake3/common/cmdlib.h index 3fb98feb..e8d6326f 100644 --- a/tools/quake3/common/cmdlib.h +++ b/tools/quake3/common/cmdlib.h @@ -88,8 +88,6 @@ extern char *moddirparam; void SetQdirFromPath( const char *path ); char *ExpandArg( const char *path ); // from cmd line char *ExpandPath( const char *path ); // from scripts -char *ExpandGamePath( const char *path ); -char *ExpandPathAndArchive( const char *path ); void ExpandWildcards( int *argc, char ***argv ); -- 2.39.2