]> git.puffer.fish Git - mirror/frr.git/commitdiff
zebra: Remove unused function `route_entry_copy_nexthops` 11201/head
authorDonald Sharp <sharpd@nvidia.com>
Fri, 13 May 2022 20:11:09 +0000 (16:11 -0400)
committerDonald Sharp <sharpd@nvidia.com>
Fri, 13 May 2022 20:11:09 +0000 (16:11 -0400)
This function is no longer used.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
zebra/rib.h
zebra/zebra_rib.c

index 281791d1f84e291e87ff09657ab522c0024f3f23..6b41952050da9073b84f5d8545ba5bab779b6803 100644 (file)
@@ -357,8 +357,6 @@ enum rib_update_event {
        RIB_UPDATE_MAX
 };
 
-extern void route_entry_copy_nexthops(struct route_entry *re,
-                                     struct nexthop *nh);
 int route_entry_update_nhe(struct route_entry *re,
                           struct nhg_hash_entry *new_nhghe);
 
index e1da92403eca6feb72ff25ad80cfbca36b31324e..6801280012f7f695a63301e82d9f459b190601a9 100644 (file)
@@ -292,15 +292,6 @@ int zebra_check_addr(const struct prefix *p)
        return 1;
 }
 
-/**
- * copy_nexthop - copy a nexthop to the rib structure.
- */
-void route_entry_copy_nexthops(struct route_entry *re, struct nexthop *nh)
-{
-       assert(!re->nhe->nhg.nexthop);
-       copy_nexthops(&re->nhe->nhg.nexthop, nh, NULL);
-}
-
 static void route_entry_attach_ref(struct route_entry *re,
                                   struct nhg_hash_entry *new)
 {