diff options
Diffstat (limited to 'netwerk/system/linux')
-rw-r--r-- | netwerk/system/linux/nsNotifyAddrListener_Linux.cpp | 12 |
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) |