mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-28 22:47:20 +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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue