From e37ff4db6593a57743330112d940d50f78cef450 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20M=C3=BCller?= Date: Sun, 21 Nov 2021 10:46:31 +0100 Subject: [PATCH] remove unused fs_getmtime in favor of fs_file_time --- src/base/system.cpp | 9 --------- src/base/system.h | 6 ------ 2 files changed, 15 deletions(-) diff --git a/src/base/system.cpp b/src/base/system.cpp index d27210c37..a97b1fcdc 100644 --- a/src/base/system.cpp +++ b/src/base/system.cpp @@ -2279,15 +2279,6 @@ int fs_is_dir(const char *path) #endif } -time_t fs_getmtime(const char *path) -{ - struct stat sb; - if(stat(path, &sb) == -1) - return 0; - - return sb.st_mtime; -} - int fs_chdir(const char *path) { if(fs_is_dir(path)) diff --git a/src/base/system.h b/src/base/system.h index ba0cba433..5ebf8f875 100644 --- a/src/base/system.h +++ b/src/base/system.h @@ -1689,12 +1689,6 @@ int fs_storage_path(const char *appname, char *path, int max); */ int fs_is_dir(const char *path); -/* - Function: fs_getmtime - Gets the modification time of a file -*/ -time_t fs_getmtime(const char *path); - /* Function: fs_chdir Changes current working directory