From 1ec29c7324e69a6f294704fb8eeb093a33085aba Mon Sep 17 00:00:00 2001 From: Vadim Yanitskiy Date: Sat, 30 Nov 2019 20:23:09 +0700 Subject: [PATCH] VTY: get rid of pcu_vty_go_parent() / pcu_vty_is_config_node() Since I2b32b4fe20732728db6e9cdac7e484d96ab86dc5, go_parent_cb() is completely optional. It no longer has the task to determine the correct parent node. The is_config_node() callback is no longer needed too. Get rid of them. Since Ic5e69a396df659933fd4d50298b9925e837a6861 we depend on 1.3.0. Change-Id: Id7ce8c4e1ac43747ad40a06d01433c366da07b42 --- src/pcu_vty.c | 31 ------------------------------- 1 file changed, 31 deletions(-) diff --git a/src/pcu_vty.c b/src/pcu_vty.c index 26d0b18b..94215d7c 100644 --- a/src/pcu_vty.c +++ b/src/pcu_vty.c @@ -91,35 +91,6 @@ DEFUN(cfg_pcu_no_gsmtap_categ, cfg_pcu_no_gsmtap_categ_cmd, "HIDDEN", "HIDDEN") return CMD_SUCCESS; } - -int pcu_vty_go_parent(struct vty *vty) -{ - switch (vty->node) { -#if 0 - case TRX_NODE: - vty->node = PCU_NODE; - { - struct gsm_bts_trx *trx = vty->index; - vty->index = trx->bts; - } - break; -#endif - default: - vty->node = CONFIG_NODE; - } - return (enum node_type) vty->node; -} - -int pcu_vty_is_config_node(struct vty *vty, int node) -{ - switch (node) { - case PCU_NODE: - return 1; - default: - return 0; - } -} - static struct cmd_node pcu_node = { (enum node_type) PCU_NODE, "%s(config-pcu)# ", @@ -1218,8 +1189,6 @@ struct vty_app_info pcu_vty_info = { .name = "OsmoPCU", .version = PACKAGE_VERSION, .copyright = pcu_copyright, - .go_parent_cb = pcu_vty_go_parent, - .is_config_node = pcu_vty_is_config_node, }; int pcu_vty_init(void)