Code Cleanup

- Removed unused text.cpp isTokenEnd function.
This commit is contained in:
Paul Beckingham 2014-09-07 16:06:42 -04:00
parent 2f815a4c6a
commit c1806303a1
2 changed files with 0 additions and 20 deletions

View file

@ -613,25 +613,6 @@ bool isWordEnd (const std::string& input, std::string::size_type pos)
return false;
}
////////////////////////////////////////////////////////////////////////////////
// Input: hello, world
// Result for pos: ....y......y
//
// Input: (one) two
// Result for pos: y..yy...y
bool isTokenEnd (const std::string& input, std::string::size_type pos)
{
// Delegate.
if (isWordEnd (input, pos))
return true;
// Punctuation divides tokens.
if (pos < input.length () && isPunctuation (input[pos]))
return true;
return false;
}
////////////////////////////////////////////////////////////////////////////////
// Override of ispunct, that considers #, $ and @ not to be punctuation.
//