mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Lexer: Removed unnecessary ::ambiguity method
This commit is contained in:
parent
8e8b2f9f38
commit
b090c6bccf
4 changed files with 0 additions and 16 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue