From 8e4bdfa2db80028bf163497b489626396e61c4b7 Mon Sep 17 00:00:00 2001 From: "Andrey V. Elsukov" Date: Mon, 27 Oct 2014 10:34:09 +0000 Subject: [PATCH] Remove unused function. Sponsored by: Yandex LLC --- sys/netinet6/in6.c | 14 -------------- sys/netinet6/in6_var.h | 1 - 2 files changed, 15 deletions(-) diff --git a/sys/netinet6/in6.c b/sys/netinet6/in6.c index 56f9aa199e90..687d9d64c4c0 100644 --- a/sys/netinet6/in6.c +++ b/sys/netinet6/in6.c @@ -1584,20 +1584,6 @@ in6_unlink_ifa(struct in6_ifaddr *ia, struct ifnet *ifp) ifa_free(&ia->ia_ifa); /* in6_ifaddrhead */ } -void -in6_purgeif(struct ifnet *ifp) -{ - struct ifaddr *ifa, *nifa; - - TAILQ_FOREACH_SAFE(ifa, &ifp->if_addrhead, ifa_link, nifa) { - if (ifa->ifa_addr->sa_family != AF_INET6) - continue; - in6_purgeaddr(ifa); - } - - in6_ifdetach(ifp); -} - /* * Notifies other other subsystems about address change/arrival: * 1) Notifies device handler on first IPv6 address assignment diff --git a/sys/netinet6/in6_var.h b/sys/netinet6/in6_var.h index 3fc7fee4fd79..3ac124a1d310 100644 --- a/sys/netinet6/in6_var.h +++ b/sys/netinet6/in6_var.h @@ -804,7 +804,6 @@ void in6_prepare_ifra(struct in6_aliasreq *, const struct in6_addr *, const struct in6_addr *); void in6_purgeaddr(struct ifaddr *); int in6if_do_dad(struct ifnet *); -void in6_purgeif(struct ifnet *); void in6_savemkludge(struct in6_ifaddr *); void *in6_domifattach(struct ifnet *); void in6_domifdetach(struct ifnet *, void *);