summaryrefslogtreecommitdiff
path: root/lib/distribute.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2021-02-08 11:48:40 -0500
committerDonald Sharp <sharpd@nvidia.com>2021-05-04 16:23:37 -0400
commiteda0ea2949c41e044ab252ae646f4d329555a54f (patch)
tree2426dd84be372bfaee6d5e72a3bee1dc8e3ea85e /lib/distribute.c
parent32282a6ecf6bdb45f396775441a848f8a8740bbd (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>
Diffstat (limited to 'lib/distribute.c')
-rw-r--r--lib/distribute.c17
1 files changed, 0 insertions, 17 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);
- }*/
-}