mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-03-25 00:30:37 +01:00
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:
parent
3d9d57e0ff
commit
12d2af7925
@ -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;
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user