From: Donald Sharp Date: Sun, 22 Jan 2017 16:05:04 +0000 (-0500) Subject: bgpd: Remove unused function bgp_parse_safi X-Git-Tag: frr-3.0-branchpoint~71^2^2~15 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=3289141f01cda126e9896401e1f74fae2913343a;p=matthieu%2Ffrr.git 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 --- 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);