From a5e6f6c1ab4aa061660e8d471af7624f3d439d85 Mon Sep 17 00:00:00 2001 From: Masatoshi Kimura Date: Wed, 26 Jul 2023 08:52:51 +0000 Subject: [PATCH] Bug 1844908 - Remove pre-Win10-specific codepath from hal/. r=gsvelto Differential Revision: https://phabricator.services.mozilla.com/D184293 --- hal/windows/WindowsScreenConfiguration.cpp | 7 ------- 1 file changed, 7 deletions(-) diff --git a/hal/windows/WindowsScreenConfiguration.cpp b/hal/windows/WindowsScreenConfiguration.cpp index c971054ff2e7..eae13bda9714 100644 --- a/hal/windows/WindowsScreenConfiguration.cpp +++ b/hal/windows/WindowsScreenConfiguration.cpp @@ -8,7 +8,6 @@ #endif #include "Hal.h" -#include "mozilla/WindowsVersion.h" #include "mozilla/widget/ScreenManager.h" #include "nsIWindowsUIUtils.h" #include "WinUtils.h" @@ -23,12 +22,6 @@ static decltype(SetDisplayAutoRotationPreferences)* RefPtr LockScreenOrientation( const hal::ScreenOrientation& aOrientation) { - // SetDisplayAutoRotationPreferences requires Win8, tablet mode and device - // support. - if (!IsWin8OrLater()) { - return GenericNonExclusivePromise::CreateAndReject( - NS_ERROR_DOM_NOT_SUPPORTED_ERR, __func__); - } AR_STATE state; if (!widget::WinUtils::GetAutoRotationState(&state)) { return GenericNonExclusivePromise::CreateAndReject(