mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-06-20 23:44:08 +00:00
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:
@@ -67,8 +67,6 @@ extern int wclose(int fd);
|
|||||||
// this function called.
|
// this function called.
|
||||||
int wtruncate(const OsPath& pathname, off_t length);
|
int wtruncate(const OsPath& pathname, off_t length);
|
||||||
|
|
||||||
int wrmdir(const OsPath& path);
|
|
||||||
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// stdlib.h
|
// stdlib.h
|
||||||
|
|||||||
@@ -98,11 +98,6 @@ int wtruncate(const OsPath& pathname, off_t length)
|
|||||||
return truncate(OsString(pathname).c_str(), 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)
|
int wrename(const OsPath& pathnameOld, const OsPath& pathnameNew)
|
||||||
{
|
{
|
||||||
return rename(OsString(pathnameOld).c_str(), OsString(pathnameNew).c_str());
|
return rename(OsString(pathnameOld).c_str(), OsString(pathnameNew).c_str());
|
||||||
|
|||||||
@@ -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)
|
OsPath wrealpath(const OsPath& pathname)
|
||||||
{
|
{
|
||||||
wchar_t resolved[PATH_MAX];
|
wchar_t resolved[PATH_MAX];
|
||||||
|
|||||||
Reference in New Issue
Block a user