Nibbler: Removed unused ::skipAll method

This commit is contained in:
Paul Beckingham 2015-10-29 23:53:17 -04:00
parent 119827e4e1
commit 297f2b6e99
3 changed files with 1 additions and 32 deletions

View file

@ -532,26 +532,6 @@ bool Nibbler::skip (char c)
return false;
}
////////////////////////////////////////////////////////////////////////////////
bool Nibbler::skipAll (char c)
{
if (_cursor < _length)
{
auto i = _input->find_first_not_of (c, _cursor);
if (i == _cursor)
return false;
if (i == std::string::npos)
_cursor = _length; // Yes, off the end.
else
_cursor = i;
return true;
}
return false;
}
////////////////////////////////////////////////////////////////////////////////
bool Nibbler::skipWS ()
{

View file

@ -63,7 +63,6 @@ public:
bool skipN (const int quantity = 1);
bool skip (char);
bool skipAll (char);
bool skipAllOneOf (const std::string&);
bool skipWS ();