From e16bcd08aae85a7d9c2de5a4b1c733280cb81112 Mon Sep 17 00:00:00 2001 From: wolfbeast Date: Sun, 13 May 2018 00:08:52 +0200 Subject: Remove MOZ_WIDGET_GONK [2/2] Tag #288 --- netwerk/wifi/nsWifiMonitor.h | 30 +----------------------------- 1 file changed, 1 insertion(+), 29 deletions(-) (limited to 'netwerk/wifi') diff --git a/netwerk/wifi/nsWifiMonitor.h b/netwerk/wifi/nsWifiMonitor.h index 665798efc..c44f6804b 100644 --- a/netwerk/wifi/nsWifiMonitor.h +++ b/netwerk/wifi/nsWifiMonitor.h @@ -48,7 +48,6 @@ class nsWifiListener bool mHasSentData; }; -#ifndef MOZ_WIDGET_GONK class nsWifiMonitor final : nsIRunnable, nsIWifiMonitor, nsIObserver { public: @@ -79,32 +78,5 @@ class nsWifiMonitor final : nsIRunnable, nsIWifiMonitor, nsIObserver nsAutoPtr mWinWifiScanner; #endif }; -#else -#include "nsIWifi.h" -class nsWifiMonitor final : nsIWifiMonitor, nsIWifiScanResultsReady, nsIObserver -{ - public: - NS_DECL_ISUPPORTS - NS_DECL_NSIWIFIMONITOR - NS_DECL_NSIOBSERVER - NS_DECL_NSIWIFISCANRESULTSREADY - nsWifiMonitor(); - - private: - ~nsWifiMonitor(); - - void ClearTimer() { - if (mTimer) { - mTimer->Cancel(); - mTimer = nullptr; - } - } - void StartScan(); - nsCOMArray mLastAccessPoints; - nsTArray mListeners; - nsCOMPtr mTimer; -}; -#endif - -#endif +#endif // __nsWifiMonitor__ -- cgit v1.2.3