summaryrefslogtreecommitdiff
path: root/src/date.cpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2008-06-20 21:14:10 +0000
committerfrosch <frosch@openttd.org>2008-06-20 21:14:10 +0000
commit4236dd3be5c4c5c130551f625f3459a4c733bfc3 (patch)
tree9f0f3597960d1562c26a18b355f4fa2e98db5a01 /src/date.cpp
parentc406ea35eccd7a7af576ce4d7f2adad2d9a13573 (diff)
downloadopenttd-4236dd3be5c4c5c130551f625f3459a4c733bfc3.tar.xz
(svn r13594) -Feature(ette)[FS#2093]: Supply newgrfs with 'day of month', 'leap year' and 'day of year'.
Diffstat (limited to 'src/date.cpp')
-rw-r--r--src/date.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/date.cpp b/src/date.cpp
index 908f94041..f6f4f19aa 100644
--- a/src/date.cpp
+++ b/src/date.cpp
@@ -77,11 +77,6 @@ static const uint16 _accum_days_for_month[] = {
ACCUM_SEP, ACCUM_OCT, ACCUM_NOV, ACCUM_DEC,
};
-static inline bool IsLeapYear(Year yr)
-{
- return yr % 4 == 0 && (yr % 100 != 0 || yr % 400 == 0);
-}
-
/**
* Converts a Date to a Year, Month & Day.
* @param date the date to convert from