mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
ISO8601: Removed unused methods
This commit is contained in:
parent
78b4e4fcc8
commit
6570a42eee
2 changed files with 4 additions and 26 deletions
|
@ -178,12 +178,6 @@ ISO8601d::~ISO8601d ()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
|
||||||
ISO8601d::operator time_t () const
|
|
||||||
{
|
|
||||||
return _date;
|
|
||||||
}
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
// Supported:
|
// Supported:
|
||||||
//
|
//
|
||||||
|
@ -1252,24 +1246,6 @@ std::string ISO8601d::monthName (int month)
|
||||||
return ucFirst (months[month - 1]);
|
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
|
// Static
|
||||||
std::string ISO8601d::dayName (int dow)
|
std::string ISO8601d::dayName (int dow)
|
||||||
|
@ -1629,6 +1605,7 @@ void ISO8601d::operator++ (int)
|
||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
/*
|
||||||
std::string ISO8601d::dump () const
|
std::string ISO8601d::dump () const
|
||||||
{
|
{
|
||||||
std::stringstream s;
|
std::stringstream s;
|
||||||
|
@ -1647,6 +1624,7 @@ std::string ISO8601d::dump () const
|
||||||
|
|
||||||
return s.str ();
|
return s.str ();
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
ISO8601p::ISO8601p ()
|
ISO8601p::ISO8601p ()
|
||||||
|
@ -1998,6 +1976,7 @@ void ISO8601p::resolve ()
|
||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
/*
|
||||||
std::string ISO8601p::dump () const
|
std::string ISO8601p::dump () const
|
||||||
{
|
{
|
||||||
std::stringstream s;
|
std::stringstream s;
|
||||||
|
@ -2013,5 +1992,6 @@ std::string ISO8601p::dump () const
|
||||||
|
|
||||||
return s.str ();
|
return s.str ();
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
|
@ -44,7 +44,6 @@ public:
|
||||||
ISO8601d (const int, const int, const int);
|
ISO8601d (const int, const int, const int);
|
||||||
ISO8601d (const int, const int, const int, const int, const int, const int);
|
ISO8601d (const int, const int, const int, const int, const int, const int);
|
||||||
~ISO8601d ();
|
~ISO8601d ();
|
||||||
operator time_t () const;
|
|
||||||
bool parse (const std::string&, std::string::size_type&, const std::string& format = "");
|
bool parse (const std::string&, std::string::size_type&, const std::string& format = "");
|
||||||
|
|
||||||
time_t toEpoch () const;
|
time_t toEpoch () const;
|
||||||
|
@ -67,7 +66,6 @@ public:
|
||||||
static int daysInMonth (int, int);
|
static int daysInMonth (int, int);
|
||||||
static int daysInYear (int);
|
static int daysInYear (int);
|
||||||
static std::string monthName (int);
|
static std::string monthName (int);
|
||||||
static void dayName (int, std::string&);
|
|
||||||
static std::string dayName (int);
|
static std::string dayName (int);
|
||||||
static int dayOfWeek (const std::string&);
|
static int dayOfWeek (const std::string&);
|
||||||
static int dayOfWeek (int, int, int);
|
static int dayOfWeek (int, int, int);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue