Lexer: Removed unnecessary ::ambiguity method

This commit is contained in:
Paul Beckingham 2015-07-01 16:18:28 -04:00
parent 8e8b2f9f38
commit b090c6bccf
4 changed files with 0 additions and 16 deletions

View file

@ -43,7 +43,6 @@ Lexer::Lexer (const std::string& text)
: _text (text)
, _cursor (0)
, _eos (text.size ())
, _ambiguity (false)
{
}
@ -52,12 +51,6 @@ Lexer::~Lexer ()
{
}
////////////////////////////////////////////////////////////////////////////////
void Lexer::ambiguity (bool value)
{
_ambiguity = value;
}
////////////////////////////////////////////////////////////////////////////////
// When a Lexer object is constructed with a string, this method walks through
// the stream of low-level tokens.
@ -455,7 +448,6 @@ bool Lexer::isDate (std::string& token, Lexer::Type& type)
{
std::size_t iso_i = 0;
ISO8601d iso;
iso.ambiguity (_ambiguity);
if (iso.parse (_text.substr (_cursor), iso_i))
{
type = Lexer::Type::date;