summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/corelib/tools/qtimezoneprivate_win.cpp11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/corelib/tools/qtimezoneprivate_win.cpp b/src/corelib/tools/qtimezoneprivate_win.cpp
index 51300c0cad..c219a49e1e 100644
--- a/src/corelib/tools/qtimezoneprivate_win.cpp
+++ b/src/corelib/tools/qtimezoneprivate_win.cpp
@@ -106,17 +106,6 @@ static QDate msecsToDate(qint64 msecs)
return QDate::fromJulianDay(jd);
}
-static SYSTEMTIME msecsToSystemtime(qint64 forMSecsSinceEpoch)
-{
- FILETIME utcFileTime;
- ULONGLONG nsecs = (forMSecsSinceEpoch * 10000 ) + FILETIME_UNIX_EPOCH;
- utcFileTime.dwLowDateTime = (DWORD) (nsecs & 0xFFFFFFFF);
- utcFileTime.dwHighDateTime = (DWORD) (nsecs >> 32);
- SYSTEMTIME utcTime;
- FileTimeToSystemTime(&utcFileTime, &utcTime);
- return utcTime;
-}
-
static qint64 systemtimeToMsecs(const SYSTEMTIME &systemtime)
{
FILETIME utcFileTime;