chore: remove unused string::removeFileExt

This commit is contained in:
sithlord48
2025-03-24 21:06:08 -04:00
committed by Nick Bolton
parent 4b24b5b38d
commit 541e30f406
2 changed files with 0 additions and 17 deletions

View File

@ -156,17 +156,6 @@ void findReplaceAll(std::string &subject, const std::string &find, const std::st
}
}
std::string removeFileExt(std::string filename)
{
size_t dot = filename.find_last_of('.');
if (dot == std::string::npos) {
return filename;
}
return filename.substr(0, dot);
}
std::string toHex(const std::string &subject, int width, const char fill)
{
std::stringstream ss;