summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/nexthop_group.c14
-rw-r--r--lib/nexthop_group.h2
2 files changed, 0 insertions, 16 deletions
diff --git a/lib/nexthop_group.c b/lib/nexthop_group.c
index c75ff7b4cd..e5c2258191 100644
--- a/lib/nexthop_group.c
+++ b/lib/nexthop_group.c
@@ -105,20 +105,6 @@ uint8_t nexthop_group_active_nexthop_num(const struct nexthop_group *nhg)
return num;
}
-uint8_t
-nexthop_group_active_nexthop_num_no_recurse(const struct nexthop_group *nhg)
-{
- struct nexthop *nhop;
- uint8_t num = 0;
-
- for (nhop = nhg->nexthop; nhop; nhop = nhop->next) {
- if (CHECK_FLAG(nhop->flags, NEXTHOP_FLAG_ACTIVE))
- num++;
- }
-
- return num;
-}
-
bool nexthop_group_has_label(const struct nexthop_group *nhg)
{
struct nexthop *nhop;
diff --git a/lib/nexthop_group.h b/lib/nexthop_group.h
index 78237e464f..88f9c62ccb 100644
--- a/lib/nexthop_group.h
+++ b/lib/nexthop_group.h
@@ -154,8 +154,6 @@ extern uint8_t
nexthop_group_nexthop_num_no_recurse(const struct nexthop_group *nhg);
extern uint8_t
nexthop_group_active_nexthop_num(const struct nexthop_group *nhg);
-extern uint8_t
-nexthop_group_active_nexthop_num_no_recurse(const struct nexthop_group *nhg);
extern bool nexthop_group_has_label(const struct nexthop_group *nhg);