From: Stephen Hemminger Date: Tue, 8 Dec 2009 09:27:02 +0000 (+0300) Subject: zebra: remove unused function to fix warning X-Git-Tag: frr-2.0-rc1~2183^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=ffac19c58ee636274cd3972b584e37cd9a3331de;p=mirror%2Ffrr.git zebra: remove unused function to fix warning * zebra/interface.c * if_supported_family(): sayonara --- diff --git a/zebra/interface.c b/zebra/interface.c index 9dfb6d50fe..ba4cf25f7c 100644 --- a/zebra/interface.c +++ b/zebra/interface.c @@ -830,19 +830,6 @@ if_dump_vty (struct vty *vty, struct interface *ifp) #endif /* HAVE_NET_RT_IFLIST */ } -/* Check supported address family. */ -static int -if_supported_family (int family) -{ - if (family == AF_INET) - return 1; -#ifdef HAVE_IPV6 - if (family == AF_INET6) - return 1; -#endif /* HAVE_IPV6 */ - return 0; -} - /* Wrapper hook point for zebra daemon so that ifindex can be set * DEFUN macro not used as extract.pl HAS to ignore this * See also interface_cmd in lib/if.c