summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@gmail.com>2018-02-19 16:41:18 +0100
committerwolfbeast <mcwerewolf@gmail.com>2018-02-19 16:41:18 +0100
commit13a9ea6486df49cee94a5e5a23b02dca13968eb7 (patch)
treeae1d5c689551acfac05d594b70627d15cb060a65
parent4f82d71df070e813927893fc20aa7954fbae997d (diff)
downloadUXP-13a9ea6486df49cee94a5e5a23b02dca13968eb7.tar
UXP-13a9ea6486df49cee94a5e5a23b02dca13968eb7.tar.gz
UXP-13a9ea6486df49cee94a5e5a23b02dca13968eb7.tar.lz
UXP-13a9ea6486df49cee94a5e5a23b02dca13968eb7.tar.xz
UXP-13a9ea6486df49cee94a5e5a23b02dca13968eb7.zip
Remove XPCOM checks for Windows Vista and clean up unused header files.
Tag #22
-rw-r--r--xpcom/build/XPCOMInit.cpp1
-rw-r--r--xpcom/glue/nsThreadUtils.cpp8
2 files changed, 1 insertions, 8 deletions
diff --git a/xpcom/build/XPCOMInit.cpp b/xpcom/build/XPCOMInit.cpp
index 895e295b1..6ead5cdc7 100644
--- a/xpcom/build/XPCOMInit.cpp
+++ b/xpcom/build/XPCOMInit.cpp
@@ -111,7 +111,6 @@ extern nsresult nsStringInputStreamConstructor(nsISupports*, REFNSIID, void**);
#include "SpecialSystemDirectory.h"
#if defined(XP_WIN)
-#include "mozilla/WindowsVersion.h"
#include "nsWindowsRegKey.h"
#endif
diff --git a/xpcom/glue/nsThreadUtils.cpp b/xpcom/glue/nsThreadUtils.cpp
index 287ada7be..2f2383fd8 100644
--- a/xpcom/glue/nsThreadUtils.cpp
+++ b/xpcom/glue/nsThreadUtils.cpp
@@ -20,15 +20,10 @@
#ifdef XP_WIN
#include <windows.h>
-#include "mozilla/WindowsVersion.h"
-using mozilla::IsVistaOrLater;
#elif defined(XP_MACOSX)
#include <sys/resource.h>
#endif
-#include <pratom.h>
-#include <prthread.h>
-
using namespace mozilla;
#ifndef XPCOM_GLUE_AVOID_NSPR
@@ -443,8 +438,7 @@ nsThreadPoolNaming::SetThreadPoolName(const nsACString& aPoolName,
nsAutoLowPriorityIO::nsAutoLowPriorityIO()
{
#if defined(XP_WIN)
- lowIOPrioritySet = IsVistaOrLater() &&
- SetThreadPriority(GetCurrentThread(),
+ lowIOPrioritySet = SetThreadPriority(GetCurrentThread(),
THREAD_MODE_BACKGROUND_BEGIN);
#elif defined(XP_MACOSX)
oldPriority = getiopolicy_np(IOPOL_TYPE_DISK, IOPOL_SCOPE_THREAD);