mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
remove unused fs_getmtime in favor of fs_file_time
This commit is contained in:
parent
4bb5dbc84a
commit
e37ff4db65
|
@ -2279,15 +2279,6 @@ int fs_is_dir(const char *path)
|
||||||
#endif
|
#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)
|
int fs_chdir(const char *path)
|
||||||
{
|
{
|
||||||
if(fs_is_dir(path))
|
if(fs_is_dir(path))
|
||||||
|
|
|
@ -1689,12 +1689,6 @@ int fs_storage_path(const char *appname, char *path, int max);
|
||||||
*/
|
*/
|
||||||
int fs_is_dir(const char *path);
|
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
|
Function: fs_chdir
|
||||||
Changes current working directory
|
Changes current working directory
|
||||||
|
|
Loading…
Reference in a new issue