diff options
| author | Donald Sharp <sharpd@nvidia.com> | 2021-02-08 11:48:40 -0500 | 
|---|---|---|
| committer | Donald Sharp <sharpd@nvidia.com> | 2021-05-04 16:23:37 -0400 | 
| commit | eda0ea2949c41e044ab252ae646f4d329555a54f (patch) | |
| tree | 2426dd84be372bfaee6d5e72a3bee1dc8e3ea85e | |
| parent | 32282a6ecf6bdb45f396775441a848f8a8740bbd (diff) | |
lib: Remove dead code
The distribute_list_init command is not used and is setup
code that will never be used because it makes assumptions about
how distribute-lists work that are fundamentally incorrect.
Remove the code.
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
| -rw-r--r-- | lib/distribute.c | 17 | ||||
| -rw-r--r-- | lib/distribute.h | 1 | 
2 files changed, 0 insertions, 18 deletions
diff --git a/lib/distribute.c b/lib/distribute.c index 6fe2c4a074..0f503d2ab9 100644 --- a/lib/distribute.c +++ b/lib/distribute.c @@ -486,20 +486,3 @@ struct distribute_ctx *distribute_list_ctx_create(struct vrf *vrf)  	listnode_add(dist_ctx_list, ctx);  	return ctx;  } - -/* Initialize distribute list vty commands */ -void distribute_list_init(int node) -{ -	/* TODO: install v4 syntax command for v6 only protocols. */ -	/* if (node == RIPNG_NODE) { -	 *   install_element (node, &ipv6_as_v4_distribute_list_all_cmd); -	 *   install_element (node, &no_ipv6_as_v4_distribute_list_all_cmd); -	 *   install_element (node, &ipv6_as_v4_distribute_list_cmd); -	 *   install_element (node, &no_ipv6_as_v4_distribute_list_cmd); -	 *   install_element (node, &ipv6_as_v4_distribute_list_prefix_all_cmd); -	 *   install_element (node, -	 &no_ipv6_as_v4_distribute_list_prefix_all_cmd); -	 *   install_element (node, &ipv6_as_v4_distribute_list_prefix_cmd); -	 *   install_element (node, &no_ipv6_as_v4_distribute_list_prefix_cmd); -	   }*/ -} diff --git a/lib/distribute.h b/lib/distribute.h index 8582e754d7..83682dea6a 100644 --- a/lib/distribute.h +++ b/lib/distribute.h @@ -64,7 +64,6 @@ struct distribute_ctx {  };  /* Prototypes for distribute-list. */ -extern void distribute_list_init(int node);  extern struct distribute_ctx *distribute_list_ctx_create(struct vrf *vrf);  extern void distribute_list_delete(struct distribute_ctx **ctx);  extern void distribute_list_add_hook(struct distribute_ctx *ctx,  | 
