From bfb4b6ce7018dbf1ad998707d797d871a5f3297a Mon Sep 17 00:00:00 2001 From: Renato Westphal Date: Sat, 21 Mar 2015 18:34:02 +0000 Subject: Remove unused variables and functions. --- usr.sbin/ldpd/neighbor.c | 29 +---------------------------- 1 file changed, 1 insertion(+), 28 deletions(-) (limited to 'usr.sbin/ldpd/neighbor.c') diff --git a/usr.sbin/ldpd/neighbor.c b/usr.sbin/ldpd/neighbor.c index db1bfbbff40..e9fd44574d3 100644 --- a/usr.sbin/ldpd/neighbor.c +++ b/usr.sbin/ldpd/neighbor.c @@ -1,4 +1,4 @@ -/* $OpenBSD: neighbor.c,v 1.44 2015/02/09 11:54:24 claudio Exp $ */ +/* $OpenBSD: neighbor.c,v 1.45 2015/03/21 18:34:01 renato Exp $ */ /* * Copyright (c) 2009 Michele Marchetto @@ -553,33 +553,6 @@ nbr_mapping_add(struct nbr *nbr, struct mapping_head *mh, struct map *map) TAILQ_INSERT_TAIL(mh, me, entry); } -struct mapping_entry * -nbr_mapping_find(struct nbr *nbr, struct mapping_head *mh, struct map *map) -{ - struct mapping_entry *me = NULL; - - TAILQ_FOREACH(me, mh, entry) { - if (me->map.prefix.s_addr == map->prefix.s_addr && - me->map.prefixlen == map->prefixlen) - return (me); - } - - return (NULL); -} - -void -nbr_mapping_del(struct nbr *nbr, struct mapping_head *mh, struct map *map) -{ - struct mapping_entry *me; - - me = nbr_mapping_find(nbr, mh, map); - if (me == NULL) - return; - - TAILQ_REMOVE(mh, me, entry); - free(me); -} - void mapping_list_clr(struct mapping_head *mh) { -- cgit v1.2.3