Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(135)

Unified Diff: Source/platform/DateComponents.cpp

Issue 57383009: Remove duplicate isLeapYear (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix export Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | Source/wtf/DateMath.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/DateComponents.cpp
diff --git a/Source/platform/DateComponents.cpp b/Source/platform/DateComponents.cpp
index e4cb1208f0d3c1c5ab754bee3fdfc0d06f452662..62f9033dae42a2c584bd5d4223be16ba187ad4d5 100644
--- a/Source/platform/DateComponents.cpp
+++ b/Source/platform/DateComponents.cpp
@@ -53,17 +53,6 @@ static const int maximumWeekInMaximumYear = 37; // The week of 275760-09-13
static const int daysInMonth[12] = {31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};
-static bool isLeapYear(int year)
-{
- if (year % 4)
- return false;
- if (!(year % 400))
- return true;
- if (!(year % 100))
- return false;
- return true;
-}
-
// 'month' is 0-based.
static int maxDayOfMonth(int year, int month)
{
« no previous file with comments | « no previous file | Source/wtf/DateMath.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698