Code Cleanup

- Removed unused text.cpp cutOff function.
This commit is contained in:
Paul Beckingham 2014-09-07 16:39:05 -04:00
parent fdb4c1f1bc
commit d9d5d004e6
2 changed files with 0 additions and 17 deletions

View file

@ -670,22 +670,6 @@ int strippedLength (const std::string& input)
return count;
}
////////////////////////////////////////////////////////////////////////////////
// Truncates a long line, and include a two-character ellipsis.
std::string cutOff (const std::string& str, std::string::size_type len)
{
if (str.length () > len)
{
return (str.substr (0, len - 2) + "..");
}
else
{
std::string res = str;
res.resize (len, ' ');
return res;
}
}
////////////////////////////////////////////////////////////////////////////////
const std::string format (char value)
{

View file

@ -59,7 +59,6 @@ bool closeEnough (const std::string&, const std::string&, unsigned int minLength
std::string::size_type find (const std::string&, const std::string&, bool sensitive = true);
std::string::size_type find (const std::string&, const std::string&, std::string::size_type, bool sensitive = true);
int strippedLength (const std::string&);
std::string cutOff (const std::string&, std::string::size_type);
const std::string format (char);
const std::string format (int);
const std::string formatHex (int);