mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +02:00
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:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user