Remove FileCat.cpp & .h

Not used anywhere in the code.
Moved ChompSlash from FileCat.cpp to image.cpp, as the only two references besides ones in filecat.cpp for the function were in there. The references are inside an #ifdef 0 block so they are not compiled currently, but this should prevent them from not working IF we ever enable them
This commit is contained in:
Asdow
2023-10-21 15:38:31 +03:00
parent d43a597423
commit 5b635784cd
5 changed files with 11 additions and 151 deletions
+11
View File
@@ -406,7 +406,18 @@ vfs::Path CreateFileName(vfs::Path const& sOutPathName, vfs::Path const& sFileNa
outPath += vfs::Path(fullpath.str());
return outPath;
}
#if 0
// Remove a slash or backslash (if any) from the end of a string
void ChompSlash(std::string& s)
{
if (s.empty()) return;
if (*s.rbegin() == '\\' || *s.rbegin() == '/') {
s.erase(s.length() - 1);
}
}
bool CImage::WriteAsBMPs(vfs_string sOutPathName)
{
if(!this->LoadData())