Code Cleanup
- Removed unused text.cpp cutOff function.
This commit is contained in:
16
src/text.cpp
16
src/text.cpp
@@ -670,22 +670,6 @@ int strippedLength (const std::string& input)
|
|||||||
return count;
|
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)
|
const std::string format (char value)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -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&, bool sensitive = true);
|
||||||
std::string::size_type find (const std::string&, const std::string&, std::string::size_type, 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&);
|
int strippedLength (const std::string&);
|
||||||
std::string cutOff (const std::string&, std::string::size_type);
|
|
||||||
const std::string format (char);
|
const std::string format (char);
|
||||||
const std::string format (int);
|
const std::string format (int);
|
||||||
const std::string formatHex (int);
|
const std::string formatHex (int);
|
||||||
|
|||||||
Reference in New Issue
Block a user