diff options
| author | Donald Sharp <sharpd@nvidia.com> | 2022-05-13 16:11:09 -0400 |
|---|---|---|
| committer | Donald Sharp <sharpd@nvidia.com> | 2022-05-13 16:11:09 -0400 |
| commit | 20ceb5475d803b22e01354dc24e889fca0147093 (patch) | |
| tree | a61cb61b1ff40729b42002dfe39015ffa82085d3 | |
| parent | 388907d53c91bfcdb82b7370cdb91ec4f4d1a64c (diff) | |
zebra: Remove unused function `route_entry_copy_nexthops`
This function is no longer used.
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
| -rw-r--r-- | zebra/rib.h | 2 | ||||
| -rw-r--r-- | zebra/zebra_rib.c | 9 |
2 files changed, 0 insertions, 11 deletions
diff --git a/zebra/rib.h b/zebra/rib.h index 281791d1f8..6b41952050 100644 --- a/zebra/rib.h +++ b/zebra/rib.h @@ -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); diff --git a/zebra/zebra_rib.c b/zebra/zebra_rib.c index e1da92403e..6801280012 100644 --- a/zebra/zebra_rib.c +++ b/zebra/zebra_rib.c @@ -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) { |
