aboutsummaryrefslogtreecommitdiffstats
path: root/src/pcu_vty.c
diff options
context:
space:
mode:
authorVadim Yanitskiy <axilirator@gmail.com>2019-11-30 20:23:09 +0700
committerVadim Yanitskiy <axilirator@gmail.com>2020-02-08 14:36:01 +0700
commit1ec29c7324e69a6f294704fb8eeb093a33085aba (patch)
tree450cf3073ff73eb3282f37b8cecf2f1d46eab0f6 /src/pcu_vty.c
parent28b4d272094bf3eaa6106af5a62aa38ecf78fcc4 (diff)
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
Diffstat (limited to 'src/pcu_vty.c')
-rw-r--r--src/pcu_vty.c31
1 files changed, 0 insertions, 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)