mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Lexer: Duration replaced by ISO8601p
This commit is contained in:
parent
88eb355e3b
commit
29f17aed68
1 changed files with 0 additions and 11 deletions
|
@ -29,7 +29,6 @@
|
|||
#include <Lexer.h>
|
||||
#include <ISO8601.h>
|
||||
#include <Date.h>
|
||||
#include <Duration.h>
|
||||
#include <utf8.h>
|
||||
|
||||
static const std::string uuid_pattern = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx";
|
||||
|
@ -491,16 +490,6 @@ bool Lexer::isDuration (std::string& token, Lexer::Type& type)
|
|||
return true;
|
||||
}
|
||||
|
||||
marker = 0;
|
||||
Duration dur;
|
||||
if (dur.parse (_text.substr (_cursor), marker))
|
||||
{
|
||||
type = Lexer::Type::duration;
|
||||
token = _text.substr (_cursor, marker);
|
||||
_cursor += marker;
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue