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: Ifdecb35f329c243222bc5d77f0a6d394c9413684
This commit is contained in:
Pau Espin Pedrol
2025-03-04 18:16:49 +01:00
parent 2eacae8f2e
commit 43279942c3

View File

@@ -249,17 +249,6 @@ static int read_call_agent(struct osmo_fd *fd, unsigned int what)
return 0;
}
int mgcp_vty_is_config_node(struct vty *vty, int node)
{
switch (node) {
case CONFIG_NODE:
return 0;
default:
return 1;
}
}
int mgcp_vty_go_parent(struct vty *vty)
{
switch (vty->node) {
@@ -269,7 +258,7 @@ int mgcp_vty_go_parent(struct vty *vty)
break;
case MGCP_NODE:
default:
if (mgcp_vty_is_config_node(vty, vty->node))
if (vty->node != CONFIG_NODE)
vty->node = CONFIG_NODE;
else
vty->node = ENABLE_NODE;
@@ -310,7 +299,6 @@ static struct vty_app_info vty_info = {
.name = "OsmoMGW",
.version = PACKAGE_VERSION,
.go_parent_cb = mgcp_vty_go_parent,
.is_config_node = mgcp_vty_is_config_node,
};
static const struct log_info_cat log_categories[] = {