diff options
author | wolfbeast <mcwerewolf@gmail.com> | 2018-02-18 13:56:18 +0100 |
---|---|---|
committer | wolfbeast <mcwerewolf@gmail.com> | 2018-02-18 14:56:31 +0100 |
commit | 6f6c71a76c732d3163ead42405e5f3445d2a2161 (patch) | |
tree | 82c15ba37726971108f6b92c15a70e9f57950846 /widget/GfxInfoBase.cpp | |
parent | 13ed1bdfbc3f1543a59d90001095da2ddf4993d3 (diff) | |
download | uxp-6f6c71a76c732d3163ead42405e5f3445d2a2161.tar.gz |
Remove unnecessary code in /widget.
- Remove numerous blocklist entries that no longer apply.
- Remove CanComputeVirtualKeyCodeFromScanCode(), because it's always true.
- Remove ShowXP{Folder,File}Picker(), since we have native pickers on supported Windows versions.
- Remove the config.trim_on_minimize preference, which is pointless on NT6+ and will just cause problems if used.
Tag mcp-graveyard/UXP#22.
Diffstat (limited to 'widget/GfxInfoBase.cpp')
-rw-r--r-- | widget/GfxInfoBase.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/widget/GfxInfoBase.cpp b/widget/GfxInfoBase.cpp index e53db69c59..5c8693957c 100644 --- a/widget/GfxInfoBase.cpp +++ b/widget/GfxInfoBase.cpp @@ -245,13 +245,7 @@ RemovePrefForDriverVersion() static OperatingSystem BlacklistOSToOperatingSystem(const nsAString& os) { - if (os.EqualsLiteral("WINNT 5.1")) - return OperatingSystem::WindowsXP; - else if (os.EqualsLiteral("WINNT 5.2")) - return OperatingSystem::WindowsServer2003; - else if (os.EqualsLiteral("WINNT 6.0")) - return OperatingSystem::WindowsVista; - else if (os.EqualsLiteral("WINNT 6.1")) + if (os.EqualsLiteral("WINNT 6.1")) return OperatingSystem::Windows7; else if (os.EqualsLiteral("WINNT 6.2")) return OperatingSystem::Windows8; |