diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2023-10-03 14:17:31 +0200 |
---|---|---|
committer | pespin <pespin@sysmocom.de> | 2023-10-05 09:39:31 +0000 |
commit | 586e897eeaa4e88c677d02ca37d7eb3953e984ef (patch) | |
tree | 7dd44103f8ef340df52f42fc88111e3f80645e42 /src/common/vty.c | |
parent | 955b7dc637fd7fcea47575b8bf4b65748501952b (diff) |
Drop use of deprectated vty callback is_config_node
While compiling:
vty.c:169:3: warning: 'is_config_node' is deprecated: Implicit parent
node tracking has replaced the use of this callback. This callback is
no longer called, ever, and can be left NULL. [-Wdeprecated-declarations]
.is_config_node = bts_vty_is_config_node,
^
Change-Id: I54c5aa5911611b181f80e76556b150f25dd5b60c
Diffstat (limited to 'src/common/vty.c')
-rw-r--r-- | src/common/vty.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/src/common/vty.c b/src/common/vty.c index f14cc92f..014042d7 100644 --- a/src/common/vty.c +++ b/src/common/vty.c @@ -140,20 +140,6 @@ int bts_vty_go_parent(struct vty *vty) return vty->node; } -int bts_vty_is_config_node(struct vty *vty, int node) -{ - switch (node) { - case TRX_NODE: - case BTS_NODE: - case PHY_NODE: - case PHY_INST_NODE: - case OSMUX_NODE: - return 1; - default: - return 0; - } -} - static const char osmobts_copyright[] = "Copyright (C) 2010-2011 by Harald Welte, Andreas Eversberg and On-Waves\r\n" "Copyright (C) 2011-2022 by sysmocom - s.f.m.c. GmbH\r\n" @@ -166,7 +152,6 @@ struct vty_app_info bts_vty_info = { .version = PACKAGE_VERSION, .copyright = osmobts_copyright, .go_parent_cb = bts_vty_go_parent, - .is_config_node = bts_vty_is_config_node, .usr_attr_desc = { [BTS_VTY_ATTR_NEW_LCHAN] = \ "This command applies for newly created lchans", |