]> git.puffer.fish Git - mirror/frr.git/commitdiff
lib: remove useless nexthop_group_active_nexthop_num_no_recurse()
authorPhilippe Guibert <philippe.guibert@6wind.com>
Mon, 27 Nov 2023 11:28:52 +0000 (12:28 +0100)
committerPhilippe Guibert <philippe.guibert@6wind.com>
Thu, 30 Nov 2023 13:25:08 +0000 (14:25 +0100)
The nexthop_group_active_nexthop_num_no_recurse() function is no more
used. Let us remove the function call.

Fixes: 148813c22a8d ("zebra: zebra_nhg check each nexthop for active, not just number")
Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
lib/nexthop_group.c
lib/nexthop_group.h

index c75ff7b4cde691d1ddce98c8f3c0329effc40c34..e5c2258191f6a097e640bb54dc30a16e86751330 100644 (file)
@@ -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;
index 78237e464fd99abab05315c972581a96bc6f8706..88f9c62ccb922146f660f7b574559faf52852986 100644 (file)
@@ -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);