util: Removed unused strippedLength() function

This commit is contained in:
Paul Beckingham 2017-03-23 01:02:29 -04:00
parent a9e65e7e61
commit 47715322dc
2 changed files with 0 additions and 28 deletions

View file

@ -269,33 +269,6 @@ bool nontrivial (const std::string& input)
return false;
}
////////////////////////////////////////////////////////////////////////////////
// Return the length, in characters, of the input, subtracting color control
// codes.
int strippedLength (const std::string& input)
{
int length = input.length ();
bool inside = false;
int count = 0;
for (int i = 0; i < length; ++i)
{
if (inside)
{
if (input[i] == 'm')
inside = false;
}
else
{
if (input[i] == 033)
inside = true;
else
++count;
}
}
return count;
}
////////////////////////////////////////////////////////////////////////////////
const char* optionalBlankLine ()
{

View file

@ -61,7 +61,6 @@ const std::vector <std::string> extractParents (
#endif
bool nontrivial (const std::string&);
int strippedLength (const std::string&);
const char* optionalBlankLine ();
void setHeaderUnderline (Table&);