diff --git a/source/lib/sysdep/filesystem.h b/source/lib/sysdep/filesystem.h index 4b5fba9e2b..fdca713f0d 100644 --- a/source/lib/sysdep/filesystem.h +++ b/source/lib/sysdep/filesystem.h @@ -67,8 +67,6 @@ extern int wclose(int fd); // this function called. int wtruncate(const OsPath& pathname, off_t length); -int wrmdir(const OsPath& path); - // // stdlib.h diff --git a/source/lib/sysdep/os/unix/ufilesystem.cpp b/source/lib/sysdep/os/unix/ufilesystem.cpp index 71da63d66c..4095735e41 100644 --- a/source/lib/sysdep/os/unix/ufilesystem.cpp +++ b/source/lib/sysdep/os/unix/ufilesystem.cpp @@ -98,11 +98,6 @@ int wtruncate(const OsPath& pathname, off_t length) return truncate(OsString(pathname).c_str(), length); } -int wrmdir(const OsPath& path) -{ - return rmdir(OsString(path).c_str()); -} - int wrename(const OsPath& pathnameOld, const OsPath& pathnameNew) { return rename(OsString(pathnameOld).c_str(), OsString(pathnameNew).c_str()); diff --git a/source/lib/sysdep/os/win/wposix/wfilesystem.cpp b/source/lib/sysdep/os/win/wposix/wfilesystem.cpp index d9bbd6fcdd..8aff89ad46 100644 --- a/source/lib/sysdep/os/win/wposix/wfilesystem.cpp +++ b/source/lib/sysdep/os/win/wposix/wfilesystem.cpp @@ -146,12 +146,6 @@ int wtruncate(const OsPath& pathname, off_t length) } -int wrmdir(const OsPath& path) -{ - return _wrmdir(OsString(path).c_str()); -} - - OsPath wrealpath(const OsPath& pathname) { wchar_t resolved[PATH_MAX];