Skip to content

Commit

Permalink
🗑️ Del. unused trimUTFString()
Browse files Browse the repository at this point in the history
  • Loading branch information
ohlidalp authored and Petr Ohlídal committed Apr 9, 2022
1 parent e9648b5 commit b882612
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
9 changes: 0 additions & 9 deletions source/main/utils/Utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,15 +93,6 @@ String RoR::getVersionString(bool multiline)
return String(tmp);
}

void RoR::trimUTFString(UTFString& str, bool left, bool right)
{
static const String delims = " \t\r";
if (right)
str.erase(str.find_last_not_of(delims) + 1); // trim right
if (left)
str.erase(0, str.find_first_not_of(delims)); // trim left
}

Real RoR::Round(Real value, unsigned short ndigits /* = 0 */)
{
Real f = 1.0f;
Expand Down
2 changes: 0 additions & 2 deletions source/main/utils/Utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,6 @@ std::time_t getTimeStamp();

Ogre::String getVersionString(bool multiline = true);

void trimUTFString(Ogre::UTFString& str, bool left = true, bool right = true);

inline void replaceString(std::string& str, std::string searchString, std::string replaceString)
{
std::string::size_type pos = 0;
Expand Down

0 comments on commit b882612

Please # to comment.