зеркало из https://github.com/mozilla/gecko-dev.git
Bug 913953 - Part z: Remove unused GetServicePackLevel function; r=ehsan
This commit is contained in:
Родитель
12e5df4340
Коммит
d7caef66d0
|
@ -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();
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче