diff options
author | rubenwardy <rw@rubenwardy.com> | 2021-01-22 15:09:26 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-22 15:09:26 +0000 |
commit | 4c76239818f5159314f30883f98b977d30aaa26c (patch) | |
tree | 42d2fc37b1e5ed2ad1c450a5547fce2ddec75b65 /src/filesys.cpp | |
parent | 67aa75d444d0e5cfff2728dbbcffd6f95b2fe88b (diff) | |
download | hax-minetest-server-4c76239818f5159314f30883f98b977d30aaa26c.tar.gz hax-minetest-server-4c76239818f5159314f30883f98b977d30aaa26c.zip |
Remove dead code (#10845)
Diffstat (limited to 'src/filesys.cpp')
-rw-r--r-- | src/filesys.cpp | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/src/filesys.cpp b/src/filesys.cpp index 28a33f4d0..eeba0c564 100644 --- a/src/filesys.cpp +++ b/src/filesys.cpp @@ -401,21 +401,6 @@ void GetRecursiveSubPaths(const std::string &path, } } -bool DeletePaths(const std::vector<std::string> &paths) -{ - bool success = true; - // Go backwards to succesfully delete the output of GetRecursiveSubPaths - for(int i=paths.size()-1; i>=0; i--){ - const std::string &path = paths[i]; - bool did = DeleteSingleFileOrEmptyDirectory(path); - if(!did){ - errorstream<<"Failed to delete "<<path<<std::endl; - success = false; - } - } - return success; -} - bool RecursiveDeleteContent(const std::string &path) { infostream<<"Removing content of \""<<path<<"\""<<std::endl; |