mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-01 06:00:15 +02: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:
@@ -123,11 +123,6 @@ std::string format::CleanString(std::string dirtyString, bool ascii, bool color,
|
|||||||
return dirtyString;
|
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> format::VideoBufferToPTI(const VideoBuffer & vidBuf)
|
||||||
{
|
{
|
||||||
std::vector<char> data;
|
std::vector<char> data;
|
||||||
|
@@ -27,7 +27,6 @@ namespace format
|
|||||||
std::string UnixtimeToDate(time_t unixtime, std::string dateFomat = "%d %b %Y");
|
std::string UnixtimeToDate(time_t unixtime, std::string dateFomat = "%d %b %Y");
|
||||||
std::string UnixtimeToDateMini(time_t unixtime);
|
std::string UnixtimeToDateMini(time_t unixtime);
|
||||||
std::string CleanString(std::string dirtyString, bool ascii, bool color, bool newlines, bool numeric = false);
|
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> VideoBufferToPNG(const VideoBuffer & vidBuf);
|
||||||
std::vector<char> VideoBufferToBMP(const VideoBuffer & vidBuf);
|
std::vector<char> VideoBufferToBMP(const VideoBuffer & vidBuf);
|
||||||
std::vector<char> VideoBufferToPPM(const VideoBuffer & vidBuf);
|
std::vector<char> VideoBufferToPPM(const VideoBuffer & vidBuf);
|
||||||
|
Reference in New Issue
Block a user