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

Unified Diff: Source/platform/DateComponents.cpp

Issue 1156393004: Remove unused method DateComponents::parseDateTime() (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 6 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
« no previous file with comments | « Source/platform/DateComponents.h ('k') | no next file » | 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 0176ba3c09acc21963d318f44e6468d4b69ecf54..6b67e1d813ab69abdf38acebf21e882713445274 100644
--- a/Source/platform/DateComponents.cpp
+++ b/Source/platform/DateComponents.cpp
@@ -466,26 +466,6 @@ bool DateComponents::parseDateTimeLocal(const String& src, unsigned start, unsig
return true;
}
-bool DateComponents::parseDateTime(const String& src, unsigned start, unsigned& end)
-{
- unsigned index;
- if (!parseDate(src, start, index))
- return false;
- if (index >= src.length())
- return false;
- if (src[index] != 'T')
- return false;
- ++index;
- if (!parseTime(src, index, index))
- return false;
- if (!parseTimeZone(src, index, end))
- return false;
- if (!withinHTMLDateLimits(m_year, m_month, m_monthDay, m_hour, m_minute, m_second, m_millisecond))
- return false;
- m_type = DateTime;
- return true;
-}
-
static inline double positiveFmod(double value, double divider)
{
double remainder = fmod(value, divider);
« no previous file with comments | « Source/platform/DateComponents.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698