diff --git a/src/ISO8601.cpp b/src/ISO8601.cpp index 3dd163e0b..84a59b106 100644 --- a/src/ISO8601.cpp +++ b/src/ISO8601.cpp @@ -960,19 +960,6 @@ void ISO8601d::resolve () _date = utc ? timegm (&t) : mktime (&t); } -//////////////////////////////////////////////////////////////////////////////// -bool ISO8601d::isEpoch (const std::string& input) -{ - if (Lexer::isAllDigits (input) && - input.length () <= 10 ) - { - _date = (time_t) strtol (input.c_str (), NULL, 10); - return true; - } - - return false; -} - //////////////////////////////////////////////////////////////////////////////// ISO8601p::ISO8601p () { diff --git a/src/ISO8601.h b/src/ISO8601.h index bc995243c..32935866d 100644 --- a/src/ISO8601.h +++ b/src/ISO8601.h @@ -119,7 +119,6 @@ private: bool parse_time_off_ext (Nibbler&); bool validate (); void resolve (); - bool isEpoch (const std::string&); public: int _year;