]> git.proxmox.com Git - mirror_frr.git/commitdiff
zebra: Remove unused zebra_router_score_proto
authorDonald Sharp <sharpd@cumulusnetworks.com>
Thu, 9 May 2019 11:13:01 +0000 (07:13 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Thu, 9 May 2019 11:13:01 +0000 (07:13 -0400)
With the previous commit, the zebra_router_score_proto function
became unnecessary, so let us remove it.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
zebra/zebra_router.c
zebra/zebra_router.h

index 63724fc350dec0241fcc60c8eb7d21b5963a0deb..fec2fa21f18c57d86e741b5565e42d2273a9a900 100644 (file)
@@ -117,19 +117,6 @@ struct route_table *zebra_router_get_table(struct zebra_vrf *zvrf,
        return zrt->table;
 }
 
-unsigned long zebra_router_score_proto(uint8_t proto, unsigned short instance)
-{
-       struct zebra_router_table *zrt;
-       unsigned long cnt = 0;
-
-       RB_FOREACH (zrt, zebra_router_table_head, &zrouter.tables) {
-               if (zrt->ns_id != NS_DEFAULT)
-                       continue;
-               cnt += rib_score_proto_table(proto, instance, zrt->table);
-       }
-       return cnt;
-}
-
 void zebra_router_show_table_summary(struct vty *vty)
 {
        struct zebra_router_table *zrt;
index b316b91d0d28b337cc50fe9e6362bae719747dda..c68e90695a9e9d93eda645bef1b9a0e870533406 100644 (file)
@@ -128,8 +128,6 @@ extern void zebra_router_release_table(struct zebra_vrf *zvrf, uint32_t tableid,
 
 extern int zebra_router_config_write(struct vty *vty);
 
-extern unsigned long zebra_router_score_proto(uint8_t proto,
-                                             unsigned short instance);
 extern void zebra_router_sweep_route(void);
 
 extern void zebra_router_show_table_summary(struct vty *vty);