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

Unified Diff: Source/wtf/DateMath.cpp

Issue 13901012: Remove OS(WINCE) as blink and chromium does not support WinCe. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 8 months 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
Index: Source/wtf/DateMath.cpp
diff --git a/Source/wtf/DateMath.cpp b/Source/wtf/DateMath.cpp
index b94468c6013b12d74d08f046c79bb8b67bc191b8..84e27a9b101736247ae13b68f06c1d2789c95989 100644
--- a/Source/wtf/DateMath.cpp
+++ b/Source/wtf/DateMath.cpp
@@ -132,7 +132,6 @@ static const int firstDayOfMonth[2][12] = {
{0, 31, 60, 91, 121, 152, 182, 213, 244, 274, 305, 335}
};
-#if !OS(WINCE)
static inline void getLocalTime(const time_t* localTime, struct tm* localTM)
{
#if COMPILER(MSVC7_OR_LOWER) || COMPILER(MINGW)
@@ -143,7 +142,6 @@ static inline void getLocalTime(const time_t* localTime, struct tm* localTM)
localtime_r(localTime, localTM);
#endif
}
-#endif
bool isLeapYear(int year)
{
@@ -420,11 +418,6 @@ int32_t calculateUTCOffset()
*/
static double calculateDSTOffsetSimple(double localTimeSeconds, double utcOffset)
{
-#if OS(WINCE)
- UNUSED_PARAM(localTimeSeconds);
- UNUSED_PARAM(utcOffset);
- return 0;
-#else
if (localTimeSeconds > maxUnixTime)
localTimeSeconds = maxUnixTime;
else if (localTimeSeconds < 0) // Go ahead a day to make localtime work (does not work with 0)
@@ -449,7 +442,6 @@ static double calculateDSTOffsetSimple(double localTimeSeconds, double utcOffset
diff += secondsPerDay;
return (diff * msPerSecond);
-#endif
}
// Get the DST offset, given a time in UTC
« no previous file with comments | « Source/wtf/DataLog.cpp ('k') | Source/wtf/OSAllocator.h » ('j') | Source/wtf/OSAllocator.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698