From c133a6a3d121d70997ff3ed7792f1b09c91c47d0 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Thu, 24 Mar 2016 16:22:30 +0100 Subject: [PATCH] Remove unused function convert_ifr_flags Signed-off-by: Corinna Vinschen --- winsup/cygwin/net.cc | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/winsup/cygwin/net.cc b/winsup/cygwin/net.cc index 31bc11dc0..3175d0ca0 100644 --- a/winsup/cygwin/net.cc +++ b/winsup/cygwin/net.cc @@ -1913,20 +1913,6 @@ get_adapters_addresses (PIP_ADAPTER_ADDRESSES *pa_ret, ULONG family) return ret == ERROR_SUCCESS || (!pa_ret && ret == ERROR_BUFFER_OVERFLOW); } -#define WS_IFF_UP 1 -#define WS_IFF_BROADCAST 2 -#define WS_IFF_LOOPBACK 4 -#define WS_IFF_POINTTOPOINT 8 -#define WS_IFF_MULTICAST 16 - -static inline short -convert_ifr_flags (u_long ws_flags) -{ - return (ws_flags & (WS_IFF_UP | WS_IFF_BROADCAST)) - | ((ws_flags & (WS_IFF_LOOPBACK | WS_IFF_POINTTOPOINT)) << 1) - | ((ws_flags & WS_IFF_MULTICAST) << 8); -} - static u_long get_routedst (DWORD if_index) {