summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/util/coreutil.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/util/coreutil.cpp')
-rw-r--r--src/lib/util/coreutil.cpp33
1 files changed, 0 insertions, 33 deletions
diff --git a/src/lib/util/coreutil.cpp b/src/lib/util/coreutil.cpp
index 8ff9585d476..bd10802ef5a 100644
--- a/src/lib/util/coreutil.cpp
+++ b/src/lib/util/coreutil.cpp
@@ -59,39 +59,6 @@ uint32_t bcd_2_dec(uint32_t a)
/***************************************************************************
- GREGORIAN CALENDAR HELPERS
-***************************************************************************/
-
-int gregorian_is_leap_year(int year)
-{
- return !((year % 100) ? (year % 4) : (year % 400));
-}
-
-
-/* months are one counted */
-
-/**
- * @fn int gregorian_days_in_month(int month, int year)
- *
- * @brief Gregorian days in month.
- *
- * @param month The month.
- * @param year The year.
- *
- * @return An int.
- */
-
-int gregorian_days_in_month(int month, int year)
-{
- assert(month >= 1 && month <= 12);
-
- int days[] = { 31,28,31,30,31,30,31,31,30,31,30,31 };
- days[1] += gregorian_is_leap_year(year) ? 1 : 0;
- return days[month-1];
-}
-
-
-/***************************************************************************
MISC
***************************************************************************/