From 2205d54a411539aa2b7ffdf91fcd730a97110f68 Mon Sep 17 00:00:00 2001 From: Yamagi Burmeister Date: Sun, 3 Jun 2012 14:30:44 +0200 Subject: [PATCH] Remove FS_DeletePath() and Sys_Rmdir() Thise functions where added with the filesystem rewrite but never used. Removing them saves us from implementing Sys_Rmdir() for Windows. --- src/common/filesystem.c | 8 -------- src/common/header/common.h | 1 - src/common/header/shared.h | 1 - src/unix/system.c | 6 ------ 4 files changed, 16 deletions(-) diff --git a/src/common/filesystem.c b/src/common/filesystem.c index 69e989a1..fc3b0f2e 100644 --- a/src/common/filesystem.c +++ b/src/common/filesystem.c @@ -257,14 +257,6 @@ FS_Gamedir(void) return (fs_gamedir); } -void -FS_DeletePath(char *path) -{ - FS_DPrintf("FS_DeletePath(%s)\n", path); - - Sys_Rmdir(path); -} - /* * Returns a FILE * for a fileHandle_t. */ diff --git a/src/common/header/common.h b/src/common/header/common.h index 66c14ab5..db2daf25 100644 --- a/src/common/header/common.h +++ b/src/common/header/common.h @@ -648,7 +648,6 @@ qboolean FS_FileExists(char *path); void FS_CopyFile(const char *srcPath, const char *dstPath); void FS_RenameFile(const char *oldPath, const char *newPath); void FS_DeleteFile(const char *path); -void FS_DeletePath(char *path); int FS_GetFileList(const char *path, const char *extension, char *buffer, int size, fsSearchType_t searchType); char **FS_ListPak(char *find, int *num); /* Knighmare- pak list function */ char **FS_ListFiles(char *findname, int *numfiles, unsigned musthave, unsigned canthave); diff --git a/src/common/header/shared.h b/src/common/header/shared.h index 996babb7..b0c7915c 100644 --- a/src/common/header/shared.h +++ b/src/common/header/shared.h @@ -249,7 +249,6 @@ extern int curtime; /* time returned by last Sys_Milliseconds */ int Sys_Milliseconds(void); void Sys_Mkdir(char *path); -void Sys_Rmdir(char *path); char *strlwr(char *s); /* large block stack allocation routines */ diff --git a/src/unix/system.c b/src/unix/system.c index 338715aa..b4b91e51 100644 --- a/src/unix/system.c +++ b/src/unix/system.c @@ -120,12 +120,6 @@ Sys_Mkdir ( char *path ) mkdir( path, 0755 ); } -void -Sys_Rmdir ( char *path ) -{ - rmdir( path ); -} - char * Sys_GetCurrentDirectory ( void ) {