From e4319de388b748ba66551f33fecdf7446e754b80 Mon Sep 17 00:00:00 2001 From: ajs Date: Sat, 2 Apr 2005 23:23:55 +0000 Subject: 2005-04-02 Andrew J. Schorr * ospf_interface.h: (ospf_if_lookup_by_name) Remove declaration of a function that does not exist. * ospf6_interface.[ch]: (ospf6_interface_lookup_by_name) Remove unused function. --- ospf6d/ChangeLog | 5 +++++ ospf6d/ospf6_interface.c | 14 -------------- ospf6d/ospf6_interface.h | 1 - 3 files changed, 5 insertions(+), 15 deletions(-) (limited to 'ospf6d') diff --git a/ospf6d/ChangeLog b/ospf6d/ChangeLog index 61a2e463..dc48ab7b 100644 --- a/ospf6d/ChangeLog +++ b/ospf6d/ChangeLog @@ -1,3 +1,8 @@ +2005-04-02 Andrew J. Schorr + + * ospf6_interface.[ch]: (ospf6_interface_lookup_by_name) Remove unused + function. + 2005-04-02 Andrew J. Schorr * ospf6_zebra.c: (ospf6_zebra_if_del) Previously, this whole function diff --git a/ospf6d/ospf6_interface.c b/ospf6d/ospf6_interface.c index 8a7ef1b0..d4180d92 100644 --- a/ospf6d/ospf6_interface.c +++ b/ospf6d/ospf6_interface.c @@ -71,20 +71,6 @@ ospf6_interface_lookup_by_ifindex (int ifindex) return oi; } -struct ospf6_interface * -ospf6_interface_lookup_by_name (char *ifname) -{ - struct ospf6_interface *oi; - struct interface *ifp; - - ifp = if_lookup_by_name (ifname); - if (ifp == NULL) - return (struct ospf6_interface *) NULL; - - oi = (struct ospf6_interface *) ifp->info; - return oi; -} - /* schedule routing table recalculation */ void ospf6_interface_lsdb_hook (struct ospf6_lsa *lsa) diff --git a/ospf6d/ospf6_interface.h b/ospf6d/ospf6_interface.h index c6615d8c..fb93ceda 100644 --- a/ospf6d/ospf6_interface.h +++ b/ospf6d/ospf6_interface.h @@ -125,7 +125,6 @@ extern const char *ospf6_interface_state_str[]; /* Function Prototypes */ struct ospf6_interface *ospf6_interface_lookup_by_ifindex (int); -struct ospf6_interface *ospf6_interface_lookup_by_name (char *); struct ospf6_interface *ospf6_interface_create (struct interface *); void ospf6_interface_delete (struct ospf6_interface *); -- cgit v1.2.1