mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Code Cleanup
- Removed unused text.cpp cutOff function.
This commit is contained in:
parent
fdb4c1f1bc
commit
d9d5d004e6
2 changed files with 0 additions and 17 deletions
16
src/text.cpp
16
src/text.cpp
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue