forked from Mirror/frr
lib: remove useless nexthop_group_active_nexthop_num_no_recurse()
The nexthop_group_active_nexthop_num_no_recurse() function is no more
used. Let us remove the function call.
Fixes: 148813c22a
("zebra: zebra_nhg check each nexthop for active, not just number")
Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
This commit is contained in:
parent
e91ef7727f
commit
2ff41dd690
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue