Remove unused static function msecsToSystemtime() from qtimezoneprivate_win.cpp.
Change-Id: I8d6b4c9215fb4499affefd0b892cea1b77aa8ac9 Reviewed-by: John Layt <jlayt@kde.org>
This commit is contained in:
parent
999e5162ec
commit
660aed3516
@ -106,17 +106,6 @@ static QDate msecsToDate(qint64 msecs)
|
|||||||
return QDate::fromJulianDay(jd);
|
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)
|
static qint64 systemtimeToMsecs(const SYSTEMTIME &systemtime)
|
||||||
{
|
{
|
||||||
FILETIME utcFileTime;
|
FILETIME utcFileTime;
|
||||||
|
Loading…
Reference in New Issue
Block a user