Index: src/animator/SkTime.cpp |
diff --git a/src/animator/SkTime.cpp b/src/animator/SkTime.cpp |
index 560ccd2fc868d2a968595d3d15d1661162207f07..c0f1975714b1b94df9e6309c40d48d8f1154af82 100644 |
--- a/src/animator/SkTime.cpp |
+++ b/src/animator/SkTime.cpp |
@@ -13,40 +13,4 @@ |
SkMSec gForceTickCount = (SkMSec) -1; |
mtklein
2016/01/06 21:22:26
Don't see any use of this outside the declaration
hal.canary
2016/01/11 22:31:40
done.
|
#endif |
-void SkTime::GetDateTime(DateTime* t) { |
- if (t) { |
- SYSTEMTIME syst; |
- |
- ::GetLocalTime(&syst); |
- t->fYear = SkToU16(syst.wYear); |
- t->fMonth = SkToU8(syst.wMonth); |
- t->fDayOfWeek = SkToU8(syst.wDayOfWeek); |
- t->fDay = SkToU8(syst.wDay); |
- t->fHour = SkToU8(syst.wHour); |
- t->fMinute = SkToU8(syst.wMinute); |
- t->fSecond = SkToU8(syst.wSecond); |
- } |
-} |
- |
-#elif defined(xSK_BUILD_FOR_MAC) |
- |
-#include <time.h> |
- |
-void SkTime::GetDateTime(DateTime* t) { |
- if (t) { |
- tm syst; |
- time_t tm; |
- |
- time(&tm); |
- localtime_r(&tm, &syst); |
- t->fYear = SkToU16(syst.tm_year); |
- t->fMonth = SkToU8(syst.tm_mon + 1); |
- t->fDayOfWeek = SkToU8(syst.tm_wday); |
- t->fDay = SkToU8(syst.tm_mday); |
- t->fHour = SkToU8(syst.tm_hour); |
- t->fMinute = SkToU8(syst.tm_min); |
- t->fSecond = SkToU8(syst.tm_sec); |
- } |
-} |
- |
#endif |