From 57f5b734586a6671b278aa007a291d80030142f9 Mon Sep 17 00:00:00 2001 From: Ralph Sennhauser Date: Sun, 14 Jun 2026 19:47:57 +0200 Subject: [PATCH] Remove unused wrapper for POSIX rmdir std::filesystem::remove can be used instead. Signed-off-by: Ralph Sennhauser --- source/lib/sysdep/filesystem.h | 2 -- source/lib/sysdep/os/unix/ufilesystem.cpp | 5 ----- source/lib/sysdep/os/win/wposix/wfilesystem.cpp | 6 ------ 3 files changed, 13 deletions(-) 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];