filesystem: use std for DeleteFile
Remove custom platform implementation of `DeleteFile` and replace single use with `std::filesystem::remove` after a negative `std::filesystem::is_directory` check.
This commit is contained in:
committed by
Rick Gibbed
parent
df65de231f
commit
fc5153bca1
@@ -131,11 +131,6 @@ bool CreateFile(const std::filesystem::path& path) {
|
||||
return false;
|
||||
}
|
||||
|
||||
bool DeleteFile(const std::filesystem::path& path) {
|
||||
// TODO: proper implementation.
|
||||
return (path.c_str()) == 0 ? true : false;
|
||||
}
|
||||
|
||||
class PosixFileHandle : public FileHandle {
|
||||
public:
|
||||
PosixFileHandle(std::filesystem::path path, int handle)
|
||||
|
||||
Reference in New Issue
Block a user