chore: remove unused string::removeFileExt
This commit is contained in:
parent
4b24b5b38d
commit
541e30f406
2 changed files with 0 additions and 17 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -52,12 +52,6 @@ Finds \c find inside \c subject and replaces it with \c replace
|
|||
*/
|
||||
void findReplaceAll(std::string &subject, const std::string &find, const std::string &replace);
|
||||
|
||||
//! Remove file extension
|
||||
/*!
|
||||
Finds the last dot and remove all characters from the dot to the end
|
||||
*/
|
||||
std::string removeFileExt(std::string filename);
|
||||
|
||||
//! Convert into hexdecimal
|
||||
/*!
|
||||
Convert each character in \c subject into hexdecimal form with \c width
|
||||
|
|
|
|||
Loading…
Reference in a new issue