From 3289141f01cda126e9896401e1f74fae2913343a Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Sun, 22 Jan 2017 11:05:04 -0500 Subject: [PATCH] bgpd: Remove unused function bgp_parse_safi The bgp_parse_safi function is never called remove it. Especially as that later commits will properly handle what this function was trying to do. Signed-off-by: Donald Sharp --- bgpd/bgp_vty.c | 12 +----------- bgpd/bgp_vty.h | 3 --- 2 files changed, 1 insertion(+), 14 deletions(-) diff --git a/bgpd/bgp_vty.c b/bgpd/bgp_vty.c index 2e001b3a9d..ef400380da 100644 --- a/bgpd/bgp_vty.c +++ b/bgpd/bgp_vty.c @@ -167,17 +167,7 @@ bgp_vty_safi_from_arg(const char *safi_str) } int -bgp_parse_safi(const char *str, safi_t *safi) -{ - *safi = bgp_vty_safi_from_arg(str); - if (*safi != SAFI_MAX) - return 0; - else - return -1; -} - -int -argv_find_and_parse_safi(struct cmd_token **argv, int argc, int *index, safi_t *safi) +argv_find_and_parse_safi (struct cmd_token **argv, int argc, int *index, safi_t *safi) { int ret = 0; if (argv_find (argv, argc, "unicast", index)) diff --git a/bgpd/bgp_vty.h b/bgpd/bgp_vty.h index 40c1723218..3f2f573414 100644 --- a/bgpd/bgp_vty.h +++ b/bgpd/bgp_vty.h @@ -51,9 +51,6 @@ peer_and_group_lookup_vty (struct vty *vty, const char *peer_str); extern int bgp_parse_afi(const char *str, afi_t *afi); -extern int -bgp_parse_safi(const char *str, safi_t *safi); - extern afi_t bgp_vty_afi_from_arg(const char *afi_str); -- 2.39.5