Remove unused wrapper for POSIX rmdir

std::filesystem::remove can be used instead.

Signed-off-by: Ralph Sennhauser <ralph.sennhauser@gmail.com>
This commit is contained in:
Ralph Sennhauser 2026-06-14 19:47:57 +02:00
parent 518ed74496
commit 57f5b73458
No known key found for this signature in database
3 changed files with 0 additions and 13 deletions

View file

@ -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

View file

@ -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());

View file

@ -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];