From 6570a42eeecee397ea33d4b166bcb3c8fb50372d Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Wed, 28 Oct 2015 11:47:28 -0400 Subject: [PATCH] ISO8601: Removed unused methods --- src/ISO8601.cpp | 28 ++++------------------------ src/ISO8601.h | 2 -- 2 files changed, 4 insertions(+), 26 deletions(-) diff --git a/src/ISO8601.cpp b/src/ISO8601.cpp index e1b1c82ce..7685965e9 100644 --- a/src/ISO8601.cpp +++ b/src/ISO8601.cpp @@ -178,12 +178,6 @@ ISO8601d::~ISO8601d () { } -//////////////////////////////////////////////////////////////////////////////// -ISO8601d::operator time_t () const -{ - return _date; -} - //////////////////////////////////////////////////////////////////////////////// // Supported: // @@ -1252,24 +1246,6 @@ std::string ISO8601d::monthName (int month) return ucFirst (months[month - 1]); } -//////////////////////////////////////////////////////////////////////////////// -// Static -void ISO8601d::dayName (int dow, std::string& name) -{ - static const char* days[7] = - { - STRING_DATE_SUNDAY, - STRING_DATE_MONDAY, - STRING_DATE_TUESDAY, - STRING_DATE_WEDNESDAY, - STRING_DATE_THURSDAY, - STRING_DATE_FRIDAY, - STRING_DATE_SATURDAY, - }; - - name = ucFirst (days[dow]); -} - //////////////////////////////////////////////////////////////////////////////// // Static std::string ISO8601d::dayName (int dow) @@ -1629,6 +1605,7 @@ void ISO8601d::operator++ (int) } //////////////////////////////////////////////////////////////////////////////// +/* std::string ISO8601d::dump () const { std::stringstream s; @@ -1647,6 +1624,7 @@ std::string ISO8601d::dump () const return s.str (); } +*/ //////////////////////////////////////////////////////////////////////////////// ISO8601p::ISO8601p () @@ -1998,6 +1976,7 @@ void ISO8601p::resolve () } //////////////////////////////////////////////////////////////////////////////// +/* std::string ISO8601p::dump () const { std::stringstream s; @@ -2013,5 +1992,6 @@ std::string ISO8601p::dump () const return s.str (); } +*/ //////////////////////////////////////////////////////////////////////////////// diff --git a/src/ISO8601.h b/src/ISO8601.h index 48aeeb528..0a3fbd0f0 100644 --- a/src/ISO8601.h +++ b/src/ISO8601.h @@ -44,7 +44,6 @@ public: ISO8601d (const int, const int, const int); ISO8601d (const int, const int, const int, const int, const int, const int); ~ISO8601d (); - operator time_t () const; bool parse (const std::string&, std::string::size_type&, const std::string& format = ""); time_t toEpoch () const; @@ -67,7 +66,6 @@ public: static int daysInMonth (int, int); static int daysInYear (int); static std::string monthName (int); - static void dayName (int, std::string&); static std::string dayName (int); static int dayOfWeek (const std::string&); static int dayOfWeek (int, int, int);