diff --git a/lib/nexthop_group.c b/lib/nexthop_group.c index c75ff7b4cde6..e5c2258191f6 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 78237e464fd9..88f9c62ccb92 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);