Remove unused FS_Rename
This commit is contained in:
1 parent
0df22a99d8
commit
9f09335084
2 files changed
-32
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user