]> git.puffer.fish Git - mirror/frr.git/commitdiff
zebra: remove unused function to fix warning
authorStephen Hemminger <shemminger@vyatta.com>
Tue, 8 Dec 2009 09:27:02 +0000 (12:27 +0300)
committerDenis Ovsienko <infrastation@yandex.ru>
Tue, 8 Dec 2009 09:27:02 +0000 (12:27 +0300)
* zebra/interface.c
  * if_supported_family(): sayonara

zebra/interface.c

index 9dfb6d50fe5c5c97e154dd1315e1e7bd8549cd0c..ba4cf25f7cefd881b0e7b229c57a23b0375d6eba 100644 (file)
@@ -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