From 6571d2ceb42930dab01677ef0e95e732d5076fb8 Mon Sep 17 00:00:00 2001 From: wolfbeast Date: Sat, 12 May 2018 16:19:33 +0200 Subject: Remove MOZ_WIDGET_GONK [1/2] Tag #288 --- hal/Hal.cpp | 6 ------ 1 file changed, 6 deletions(-) (limited to 'hal/Hal.cpp') diff --git a/hal/Hal.cpp b/hal/Hal.cpp index 44be2f510..8ac9e6847 100644 --- a/hal/Hal.cpp +++ b/hal/Hal.cpp @@ -89,8 +89,6 @@ AssertMainProcess() MOZ_ASSERT(GeckoProcessType_Default == XRE_GetProcessType()); } -#if !defined(MOZ_WIDGET_GONK) - bool WindowIsActive(nsPIDOMWindowInner* aWindow) { @@ -100,8 +98,6 @@ WindowIsActive(nsPIDOMWindowInner* aWindow) return !document->Hidden(); } -#endif // !defined(MOZ_WIDGET_GONK) - StaticAutoPtr gLastIDToVibrate; void InitLastIDToVibrate() @@ -123,7 +119,6 @@ Vibrate(const nsTArray& pattern, const WindowIdentifier &id) { AssertMainThread(); -#if !defined(MOZ_WIDGET_GONK) // Only active windows may start vibrations. If |id| hasn't gone // through the IPC layer -- that is, if our caller is the outside // world, not hal_proxy -- check whether the window is active. If @@ -134,7 +129,6 @@ Vibrate(const nsTArray& pattern, const WindowIdentifier &id) HAL_LOG("Vibrate: Window is inactive, dropping vibrate."); return; } -#endif // !defined(MOZ_WIDGET_GONK) if (!InSandbox()) { if (!gLastIDToVibrate) { -- cgit v1.2.3