mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-11 17:51:04 +00:00
Remove dead code (#10845)
This commit is contained in:
parent
67aa75d444
commit
4c76239818
31 changed files with 8 additions and 331 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue