Drop use of deprecated vty is_config_node() cb

This callback was drepecated and is not ever called since
libosmocore.git 70ce871532ab21955e0955d7e230eae65438f047 (release 1.3.0).

See also libosmocore.git d31de237582f6fe3315d61bb9a488d4cda92654e.

Change-Id: I3809f9c0529004ff117e9e79ee81d30dca6e9bc4
This commit is contained in:
Pau Espin Pedrol
2025-03-04 18:23:06 +01:00
parent 249c720af9
commit 6f5534bd5f

View File

@@ -33,7 +33,6 @@ extern void *tall_mncc_ctx;
struct app_config g_app;
static int mncc_vty_go_parent(struct vty *vty);
static int mncc_vty_is_config_node(struct vty *vty, int node);
static struct cmd_node sip_node = {
SIP_NODE,
@@ -57,7 +56,6 @@ static struct vty_app_info vty_info = {
.name = "OsmoSIPcon",
.version = PACKAGE_VERSION,
.go_parent_cb = mncc_vty_go_parent,
.is_config_node = mncc_vty_is_config_node,
.copyright = "GNU AGPLv3+\n",
};
@@ -71,7 +69,7 @@ static int mncc_vty_go_parent(struct vty *vty)
vty->index = NULL;
break;
default:
if (mncc_vty_is_config_node(vty, vty->node))
if (vty->node >= SIP_NODE)
vty->node = CONFIG_NODE;
else
vty->node = ENABLE_NODE;
@@ -81,11 +79,6 @@ static int mncc_vty_go_parent(struct vty *vty)
return vty->node;
}
static int mncc_vty_is_config_node(struct vty *vty, int node)
{
return node >= SIP_NODE;
}
static int config_write_sip(struct vty *vty)
{
vty_out(vty, "sip%s", VTY_NEWLINE);