mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-25 21:27:19 +02:00
Nibbler: Removed unused ::getDigit6 method
This commit is contained in:
parent
88469fc5f9
commit
119827e4e1
3 changed files with 1 additions and 31 deletions
|
@ -252,29 +252,6 @@ bool Nibbler::getDigit (int& result)
|
|||
return false;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
bool Nibbler::getDigit6 (int& result)
|
||||
{
|
||||
auto i = _cursor;
|
||||
if (i < _length &&
|
||||
_length - i >= 6)
|
||||
{
|
||||
if (Lexer::isDigit ((*_input)[i + 0]) &&
|
||||
Lexer::isDigit ((*_input)[i + 1]) &&
|
||||
Lexer::isDigit ((*_input)[i + 2]) &&
|
||||
Lexer::isDigit ((*_input)[i + 3]) &&
|
||||
Lexer::isDigit ((*_input)[i + 4]) &&
|
||||
Lexer::isDigit ((*_input)[i + 5]))
|
||||
{
|
||||
result = strtoimax (_input->substr (_cursor, 6).c_str (), NULL, 10);
|
||||
_cursor += 6;
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
bool Nibbler::getDigit4 (int& result)
|
||||
{
|
||||
|
|
|
@ -50,7 +50,6 @@ public:
|
|||
bool getN (const int, std::string&);
|
||||
bool getQuoted (char, std::string&, bool quote = false);
|
||||
bool getDigit (int&);
|
||||
bool getDigit6 (int&);
|
||||
bool getDigit4 (int&);
|
||||
bool getDigit3 (int&);
|
||||
bool getDigit2 (int&);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue