From ffac19c58ee636274cd3972b584e37cd9a3331de Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Tue, 8 Dec 2009 12:27:02 +0300 Subject: zebra: remove unused function to fix warning * zebra/interface.c * if_supported_family(): sayonara --- zebra/interface.c | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'zebra') diff --git a/zebra/interface.c b/zebra/interface.c index 9dfb6d50..ba4cf25f 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 -- cgit v1.2.1