diff --git a/code/qcommon/files.c b/code/qcommon/files.c index a700133f..c935f7cb 100644 --- a/code/qcommon/files.c +++ b/code/qcommon/files.c @@ -813,36 +813,6 @@ void FS_BaseDir_Rename( const char *from, const char *to, qboolean safe ) { rename(from_ospath, to_ospath); } - - -/* -=========== -FS_Rename - -=========== -*/ -void FS_Rename( const char *from, const char *to ) { - char *from_ospath, *to_ospath; - - if ( !fs_searchpaths ) { - Com_Error( ERR_FATAL, "Filesystem call made without initialization" ); - } - - // don't let sound stutter - S_ClearSoundBuffer(); - - from_ospath = FS_BuildOSPath( fs_homepath->string, fs_gamedir, from ); - to_ospath = FS_BuildOSPath( fs_homepath->string, fs_gamedir, to ); - - if ( fs_debug->integer ) { - Com_Printf( "FS_Rename: %s --> %s\n", from_ospath, to_ospath ); - } - - FS_CheckFilenameIsMutable( to_ospath, __func__ ); - - rename(from_ospath, to_ospath); -} - /* ============== FS_FCloseFile diff --git a/code/qcommon/qcommon.h b/code/qcommon/qcommon.h index 00592f9b..da69825a 100644 --- a/code/qcommon/qcommon.h +++ b/code/qcommon/qcommon.h @@ -731,8 +731,6 @@ qboolean FS_InvalidGameDir(const char *gamedir); qboolean FS_idPak(char *pak, char *base, int numPaks); qboolean FS_ComparePaks( char *neededpaks, int len, qboolean dlstring ); -void FS_Rename( const char *from, const char *to ); - void FS_Remove( const char *osPath ); void FS_HomeRemove( const char *homePath );