From ed7e15589dc524acd1e162ae307acb2e3a6f3cdf Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Mon, 3 Jun 2019 08:38:38 -0400 Subject: [PATCH] pimd: Remove unused functions Recent commits rewrote the `clear mroute` command and this caused these two two functions to no longer be used, remove. Signed-off-by: Donald Sharp --- pimd/pim_cmd.c | 42 ------------------------------------------ 1 file changed, 42 deletions(-) diff --git a/pimd/pim_cmd.c b/pimd/pim_cmd.c index 2b97dd3822..f3343f122b 100644 --- a/pimd/pim_cmd.c +++ b/pimd/pim_cmd.c @@ -3806,48 +3806,6 @@ DEFUN (clear_ip_pim_statistics, return CMD_SUCCESS; } -static void mroute_add_all(struct pim_instance *pim) -{ - struct listnode *node; - struct channel_oil *c_oil; - - for (ALL_LIST_ELEMENTS_RO(pim->channel_oil_list, node, c_oil)) { - if (pim_mroute_add(c_oil, __PRETTY_FUNCTION__)) { - /* just log warning */ - char source_str[INET_ADDRSTRLEN]; - char group_str[INET_ADDRSTRLEN]; - pim_inet4_dump("", c_oil->oil.mfcc_origin, - source_str, sizeof(source_str)); - pim_inet4_dump("", c_oil->oil.mfcc_mcastgrp, - group_str, sizeof(group_str)); - zlog_warn("%s %s: (S,G)=(%s,%s) failure writing MFC", - __FILE__, __PRETTY_FUNCTION__, source_str, - group_str); - } - } -} - -static void mroute_del_all(struct pim_instance *pim) -{ - struct listnode *node; - struct channel_oil *c_oil; - - for (ALL_LIST_ELEMENTS_RO(pim->channel_oil_list, node, c_oil)) { - if (pim_mroute_del(c_oil, __PRETTY_FUNCTION__)) { - /* just log warning */ - char source_str[INET_ADDRSTRLEN]; - char group_str[INET_ADDRSTRLEN]; - pim_inet4_dump("", c_oil->oil.mfcc_origin, - source_str, sizeof(source_str)); - pim_inet4_dump("", c_oil->oil.mfcc_mcastgrp, - group_str, sizeof(group_str)); - zlog_warn("%s %s: (S,G)=(%s,%s) failure clearing MFC", - __FILE__, __PRETTY_FUNCTION__, source_str, - group_str); - } - } -} - static void clear_mroute(struct pim_instance *pim) { struct pim_upstream *up; -- 2.39.5