summaryrefslogtreecommitdiff
path: root/zebra/zebra_router.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2019-05-09 07:13:01 -0400
committerDonald Sharp <sharpd@cumulusnetworks.com>2019-05-09 07:13:01 -0400
commit4bc1617c0ce4232d5ce4f274737135b2a847b399 (patch)
treea14dfac42917008d88e3682ee58226a7af3dd2ac /zebra/zebra_router.c
parentd8612e6545f0b631dcb834d6031787469c139e88 (diff)
zebra: Remove unused zebra_router_score_proto
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>
Diffstat (limited to 'zebra/zebra_router.c')
-rw-r--r--zebra/zebra_router.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/zebra/zebra_router.c b/zebra/zebra_router.c
index 63724fc350..fec2fa21f1 100644
--- a/zebra/zebra_router.c
+++ b/zebra/zebra_router.c
@@ -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;