summaryrefslogtreecommitdiff
path: root/netwerk/wifi
diff options
context:
space:
mode:
Diffstat (limited to 'netwerk/wifi')
-rw-r--r--netwerk/wifi/nsWifiMonitor.h30
1 files changed, 1 insertions, 29 deletions
diff --git a/netwerk/wifi/nsWifiMonitor.h b/netwerk/wifi/nsWifiMonitor.h
index 665798efc3..c44f6804b2 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<WinWifiScanner> 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<nsWifiAccessPoint> mLastAccessPoints;
- nsTArray<nsWifiListener> mListeners;
- nsCOMPtr<nsITimer> mTimer;
-};
-#endif
-
-#endif
+#endif // __nsWifiMonitor__