From 13a9ea6486df49cee94a5e5a23b02dca13968eb7 Mon Sep 17 00:00:00 2001 From: wolfbeast Date: Mon, 19 Feb 2018 16:41:18 +0100 Subject: Remove XPCOM checks for Windows Vista and clean up unused header files. Tag #22 --- xpcom/glue/nsThreadUtils.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'xpcom/glue') 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 -#include "mozilla/WindowsVersion.h" -using mozilla::IsVistaOrLater; #elif defined(XP_MACOSX) #include #endif -#include -#include - 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); -- cgit v1.2.3