From 5c6c1233647fa4f5a7d6eebb667bffd41fd87a75 Mon Sep 17 00:00:00 2001 From: Joel16 Date: Thu, 2 Aug 2018 23:09:08 -0500 Subject: [PATCH] Remove unused FS_RecursiveMakeDir() --- common/fs.c | 32 +------------------------------- 1 file changed, 1 insertion(+), 31 deletions(-) diff --git a/common/fs.c b/common/fs.c index f9e163f..8d78ee6 100644 --- a/common/fs.c +++ b/common/fs.c @@ -37,37 +37,7 @@ Result FS_MakeDir(FS_Archive archive, const char *path) return 0; } -Result FS_RecursiveMakeDir(FS_Archive archive, const char * dir) -{ - Result ret = 0; - char buf[256]; - char *p = NULL; - size_t len; - - snprintf(buf, sizeof(buf), "%s",dir); - len = strlen(buf); - - if (buf[len - 1] == '/') - buf[len - 1] = 0; - - for (p = buf + 1; *p; p++) - { - if (*p == '/') - { - *p = 0; - - ret = FS_MakeDir(archive, buf); - - *p = '/'; - } - - ret = FS_MakeDir(archive, buf); - } - - return ret; -} - -bool FS_FileExists(FS_Archive archive, const char * path) +bool FS_FileExists(FS_Archive archive, const char *path) { Handle handle;