diff options
author | wolfbeast <mcwerewolf@gmail.com> | 2018-05-13 00:08:52 +0200 |
---|---|---|
committer | wolfbeast <mcwerewolf@gmail.com> | 2018-05-13 00:08:52 +0200 |
commit | e16bcd08aae85a7d9c2de5a4b1c733280cb81112 (patch) | |
tree | 220026724ceb8fbcf18bf627fde022c2d8df0e91 /netwerk/system | |
parent | 6571d2ceb42930dab01677ef0e95e732d5076fb8 (diff) | |
download | uxp-e16bcd08aae85a7d9c2de5a4b1c733280cb81112.tar.gz |
Remove MOZ_WIDGET_GONK [2/2]
Tag #288
Diffstat (limited to 'netwerk/system')
-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 c0ec9d90e2..42d2cc3a2e 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) |