From 5cc3c8d05d5cab42c73b4b9b400d844a0f5fb6e8 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sun, 27 Sep 2015 12:15:18 -0400 Subject: [PATCH] ISO8601d: Removed obsolete ::isEpoch method --- src/ISO8601.cpp | 13 ------------- src/ISO8601.h | 1 - 2 files changed, 14 deletions(-) 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;