mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Nibbler: Removed unused ::skipAll method
This commit is contained in:
parent
119827e4e1
commit
297f2b6e99
3 changed files with 1 additions and 32 deletions
|
@ -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 ()
|
||||
{
|
||||
|
|
|
@ -63,7 +63,6 @@ public:
|
|||
|
||||
bool skipN (const int quantity = 1);
|
||||
bool skip (char);
|
||||
bool skipAll (char);
|
||||
bool skipAllOneOf (const std::string&);
|
||||
bool skipWS ();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue