Skip to content

Commit

Permalink
Removed unnecessary CleanString() function (#443)
Browse files Browse the repository at this point in the history
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*`.
  • Loading branch information
cppxor2arr authored and jacob1 committed Jun 10, 2017
1 parent 3d9d57e commit 12d2af7
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
5 changes: 0 additions & 5 deletions src/Format.cpp
Expand Up @@ -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;
Expand Down
1 change: 0 additions & 1 deletion src/Format.h
Expand Up @@ -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);
Expand Down

0 comments on commit 12d2af7

Please sign in to comment.