Index: src/platform-posix.cc |
diff --git a/src/platform-posix.cc b/src/platform-posix.cc |
index 41e0e64f3b017eecd694303d983db9a19f691db1..89f4d983df0a0388f47937c1f607d0de2866d40d 100644 |
--- a/src/platform-posix.cc |
+++ b/src/platform-posix.cc |
@@ -99,15 +99,6 @@ int64_t OS::Ticks() { |
} |
-const char* OS::LocalTimezone(double time) { |
- if (isnan(time)) return ""; |
- time_t tv = static_cast<time_t>(floor(time/msPerSecond)); |
- struct tm* t = localtime(&tv); |
- if (NULL == t) return ""; |
- return t->tm_zone; |
-} |
- |
- |
double OS::DaylightSavingsOffset(double time) { |
if (isnan(time)) return nan_value(); |
time_t tv = static_cast<time_t>(floor(time/msPerSecond)); |
@@ -117,15 +108,6 @@ double OS::DaylightSavingsOffset(double time) { |
} |
-double OS::LocalTimeOffset() { |
- time_t tv = time(NULL); |
- struct tm* t = localtime(&tv); |
- // tm_gmtoff includes any daylight savings offset, so subtract it. |
- return static_cast<double>(t->tm_gmtoff * msPerSecond - |
- (t->tm_isdst > 0 ? 3600 * msPerSecond : 0)); |
-} |
- |
- |
// ---------------------------------------------------------------------------- |
// POSIX stdio support. |
// |