From bb8591dfab0eb49f418f06b9ceaef430e3306b6c Mon Sep 17 00:00:00 2001 From: Pau Espin Pedrol Date: Tue, 4 Mar 2025 18:21:43 +0100 Subject: [PATCH] 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: I0a77ff4c0a880230116a361651c78c77328db989 --- include/osmocom/hlr/hlr_vty.h | 1 - src/hlr.c | 1 - src/hlr_vty.c | 12 ------------ 3 files changed, 14 deletions(-) diff --git a/include/osmocom/hlr/hlr_vty.h b/include/osmocom/hlr/hlr_vty.h index 86015900..10ea8b75 100644 --- a/include/osmocom/hlr/hlr_vty.h +++ b/include/osmocom/hlr/hlr_vty.h @@ -48,7 +48,6 @@ enum hlr_vty_node { #define A38_COMP128_KEY_LEN 16 #define MILENAGE_KEY_LEN 16 -int hlr_vty_is_config_node(struct vty *vty, int node); int hlr_vty_go_parent(struct vty *vty); void hlr_vty_init(void *hlr_ctx); void dgsm_vty_init(void); diff --git a/src/hlr.c b/src/hlr.c index a900e235..0cfa09ad 100644 --- a/src/hlr.c +++ b/src/hlr.c @@ -754,7 +754,6 @@ static struct vty_app_info vty_info = { .name = "OsmoHLR", .version = PACKAGE_VERSION, .copyright = vlr_copyright, - .is_config_node = hlr_vty_is_config_node, .go_parent_cb = hlr_vty_go_parent, }; diff --git a/src/hlr_vty.c b/src/hlr_vty.c index 4694c441..18861d2a 100644 --- a/src/hlr_vty.c +++ b/src/hlr_vty.c @@ -881,18 +881,6 @@ int hlr_vty_go_parent(struct vty *vty) return vty->node; } -int hlr_vty_is_config_node(struct vty *vty, int node) -{ - switch (node) { - /* add items that are not config */ - case CONFIG_NODE: - return 0; - - default: - return 1; - } -} - void hlr_vty_init(void *hlr_ctx) { cfg_reject_cause_cmd.string =