zebra: Remove unused function route_entry_copy_nexthops

This function is no longer used.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
This commit is contained in:
Donald Sharp 2022-05-13 16:11:09 -04:00
parent 388907d53c
commit 20ceb5475d
2 changed files with 0 additions and 11 deletions

View 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);

View 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)
{