summaryrefslogtreecommitdiff
path: root/zebra/interface.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2024-02-08 11:49:08 -0500
committerDonald Sharp <sharpd@nvidia.com>2024-02-08 11:49:08 -0500
commitb9130ab51b58a87d1c1b0d4e0cab072df1357a4d (patch)
tree568645cb530d0ba97d6faa93b8650ed88a5b2a07 /zebra/interface.c
parent910b2c5a4adaf14f007c18abbc97f59e380fe17b (diff)
zebra: Remove helper function if_nhg_dependents_is_empty
Let's just let the function figure this out. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'zebra/interface.c')
-rw-r--r--zebra/interface.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/zebra/interface.c b/zebra/interface.c
index 6624eb2591..829f9dab61 100644
--- a/zebra/interface.c
+++ b/zebra/interface.c
@@ -983,18 +983,6 @@ unsigned int if_nhg_dependents_count(const struct interface *ifp)
return 0;
}
-
-bool if_nhg_dependents_is_empty(const struct interface *ifp)
-{
- if (ifp->info) {
- struct zebra_if *zif = (struct zebra_if *)ifp->info;
-
- return nhg_connected_tree_is_empty(&zif->nhg_dependents);
- }
-
- return false;
-}
-
/* Interface is up. */
void if_up(struct interface *ifp, bool install_connected)
{