Removed unnecessary CleanString() function (#443)

Two `CleanString()` functions with the only differing thing the first parameter (`const char*` vs `std::string`); removed the one with `const char*` since `std::string` can be constructed with `const char*`.
This commit is contained in:
cppxor2arr 2017-06-10 12:57:12 +09:00 committed by jacob1
parent 3d9d57e0ff
commit 12d2af7925
2 changed files with 0 additions and 6 deletions

View File

@ -123,11 +123,6 @@ std::string format::CleanString(std::string dirtyString, bool ascii, bool color,
return dirtyString;
}
std::string format::CleanString(const char * dirtyData, bool ascii, bool color, bool newlines, bool numeric)
{
return CleanString(std::string(dirtyData), ascii, color, newlines, numeric);
}
std::vector<char> format::VideoBufferToPTI(const VideoBuffer & vidBuf)
{
std::vector<char> data;

View File

@ -27,7 +27,6 @@ namespace format
std::string UnixtimeToDate(time_t unixtime, std::string dateFomat = "%d %b %Y");
std::string UnixtimeToDateMini(time_t unixtime);
std::string CleanString(std::string dirtyString, bool ascii, bool color, bool newlines, bool numeric = false);
std::string CleanString(const char * dirtyData, bool ascii, bool color, bool newlines, bool numeric = false);
std::vector<char> VideoBufferToPNG(const VideoBuffer & vidBuf);
std::vector<char> VideoBufferToBMP(const VideoBuffer & vidBuf);
std::vector<char> VideoBufferToPPM(const VideoBuffer & vidBuf);