mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-29 17:07:19 +02:00
Cleanup
- Removed unused Nibbler::getHex.
This commit is contained in:
parent
520067f522
commit
c11601e30e
3 changed files with 4 additions and 43 deletions
|
@ -403,33 +403,6 @@ bool Nibbler::getInt (int& result)
|
|||
return false;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
bool Nibbler::getHex (int& result)
|
||||
{
|
||||
std::string::size_type i = _cursor;
|
||||
|
||||
if (i < _length)
|
||||
{
|
||||
if (_input[i] == '-')
|
||||
++i;
|
||||
else if (_input[i] == '+')
|
||||
++i;
|
||||
}
|
||||
|
||||
// TODO Potential for use of find_first_not_of
|
||||
while (i < _length && isxdigit (_input[i]))
|
||||
++i;
|
||||
|
||||
if (i > _cursor)
|
||||
{
|
||||
result = strtoimax (_input.substr (_cursor, i - _cursor).c_str (), NULL, 16);
|
||||
_cursor = i;
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
bool Nibbler::getUnsignedInt (int& result)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue