aboutsummaryrefslogtreecommitdiff
path: root/common/file.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'common/file.cpp')
-rw-r--r--common/file.cpp30
1 files changed, 0 insertions, 30 deletions
diff --git a/common/file.cpp b/common/file.cpp
index 40f1a296f3..2c08753696 100644
--- a/common/file.cpp
+++ b/common/file.cpp
@@ -423,36 +423,6 @@ bool File::open(const FilesystemNode &node, AccessMode mode) {
return true;
}
-bool File::removeFile(const String &filename){
- if (remove(filename.c_str()) != 0) {
- if (errno == EACCES) {
- //TODO: read-only file
- }
- if (errno == ENOENT) {
- //TODO: non-existent file
- }
-
- return false;
- } else {
- return true;
- }
-}
-
-bool File::removeFile(const FilesystemNode &node){
- if (remove(node.getPath().c_str()) != 0) {
- if (errno == EACCES) {
- //TODO: read-only file
- }
- if (errno == ENOENT) {
- //TODO: non-existent file
- }
-
- return false;
- } else {
- return true;
- }
-}
-
bool File::exists(const String &filename) {
FilesystemNode* file;
String fname = filename;