Bug 913953 - Part z: Remove unused GetServicePackLevel function; r=ehsan

This commit is contained in:
Ms2ger 2013-09-10 09:03:37 +02:00
Родитель 12e5df4340
Коммит d7caef66d0
2 изменённых файлов: 0 добавлений и 21 удалений

Просмотреть файл

@ -75,24 +75,6 @@ WinVersion GetWinVersion() {
return win_version;
}
void GetServicePackLevel(int* major, int* minor) {
DCHECK(major && minor);
static bool checked_version = false;
static int service_pack_major = -1;
static int service_pack_minor = -1;
if (!checked_version) {
OSVERSIONINFOEX version_info = {0};
version_info.dwOSVersionInfoSize = sizeof(version_info);
GetVersionEx(reinterpret_cast<OSVERSIONINFOW*>(&version_info));
service_pack_major = version_info.wServicePackMajor;
service_pack_minor = version_info.wServicePackMinor;
checked_version = true;
}
*major = service_pack_major;
*minor = service_pack_minor;
}
bool IsShiftPressed() {
return (::GetKeyState(VK_SHIFT) & 0x80) == 0x80;
}

Просмотреть файл

@ -32,9 +32,6 @@ void GetNonClientMetrics(NONCLIENTMETRICS* metrics);
// Returns the running version of Windows.
WinVersion GetWinVersion();
// Returns the major and minor version of the service pack installed.
void GetServicePackLevel(int* major, int* minor);
// Returns true if the shift key is currently pressed.
bool IsShiftPressed();