summaryrefslogtreecommitdiffstats
path: root/netwerk/system
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@gmail.com>2018-05-13 00:08:52 +0200
committerwolfbeast <mcwerewolf@gmail.com>2018-05-13 00:08:52 +0200
commite16bcd08aae85a7d9c2de5a4b1c733280cb81112 (patch)
tree220026724ceb8fbcf18bf627fde022c2d8df0e91 /netwerk/system
parent6571d2ceb42930dab01677ef0e95e732d5076fb8 (diff)
downloadUXP-e16bcd08aae85a7d9c2de5a4b1c733280cb81112.tar
UXP-e16bcd08aae85a7d9c2de5a4b1c733280cb81112.tar.gz
UXP-e16bcd08aae85a7d9c2de5a4b1c733280cb81112.tar.lz
UXP-e16bcd08aae85a7d9c2de5a4b1c733280cb81112.tar.xz
UXP-e16bcd08aae85a7d9c2de5a4b1c733280cb81112.zip
Remove MOZ_WIDGET_GONK [2/2]
Tag #288
Diffstat (limited to 'netwerk/system')
-rw-r--r--netwerk/system/linux/nsNotifyAddrListener_Linux.cpp12
1 files changed, 0 insertions, 12 deletions
diff --git a/netwerk/system/linux/nsNotifyAddrListener_Linux.cpp b/netwerk/system/linux/nsNotifyAddrListener_Linux.cpp
index c0ec9d90e..42d2cc3a2 100644
--- a/netwerk/system/linux/nsNotifyAddrListener_Linux.cpp
+++ b/netwerk/system/linux/nsNotifyAddrListener_Linux.cpp
@@ -8,10 +8,6 @@
#include <fcntl.h>
#include <poll.h>
#include <errno.h>
-#ifndef MOZ_WIDGET_GONK
-#include <ifaddrs.h>
-#include <net/if.h>
-#endif
#include "nsThreadUtils.h"
#include "nsIObserverService.h"
@@ -28,10 +24,6 @@
#include "mozilla/Sprintf.h"
#include "mozilla/Telemetry.h"
-#ifdef MOZ_WIDGET_GONK
-#include <cutils/properties.h>
-#endif
-
/* a shorter name that better explains what it does */
#define EINTR_RETRY(x) MOZ_TEMP_FAILURE_RETRY(x)
@@ -210,9 +202,6 @@ void nsNotifyAddrListener::calculateNetworkId(void)
//
void nsNotifyAddrListener::checkLink(void)
{
-#ifdef MOZ_WIDGET_GONK
- // b2g instead has NetworkManager.js which handles UP/DOWN
-#else
struct ifaddrs *list;
struct ifaddrs *ifa;
bool link = false;
@@ -247,7 +236,6 @@ void nsNotifyAddrListener::checkLink(void)
SendEvent(mLinkUp ?
NS_NETWORK_LINK_DATA_UP : NS_NETWORK_LINK_DATA_DOWN);
}
-#endif
}
void nsNotifyAddrListener::OnNetlinkMessage(int aNetlinkSocket)