Lexer: Duration replaced by ISO8601p

This commit is contained in:
Paul Beckingham 2015-08-12 07:56:48 -04:00
parent 88eb355e3b
commit 29f17aed68

View file

@ -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;
}