aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeels Hofmeyr <neels@hofmeyr.de>2017-07-09 21:42:39 +0200
committerNeels Hofmeyr <nhofmeyr@sysmocom.de>2017-07-25 01:06:59 +0200
commit82a8a3fee524362e553a640fbf0e56fdd76e7780 (patch)
tree13c52b9a5787d74d38cd03d535f440cdd0cc51d3
parentc27dcbb8465da623551d341f9737f4d22d9c966e (diff)
apply changes of removed files
-rw-r--r--include/openbsc/paging.h1
-rw-r--r--src/libcommon/common_vty.c57
2 files changed, 0 insertions, 58 deletions
diff --git a/include/openbsc/paging.h b/include/openbsc/paging.h
index 7dd8500ac..049da1402 100644
--- a/include/openbsc/paging.h
+++ b/include/openbsc/paging.h
@@ -27,7 +27,6 @@
#include <osmocom/core/timer.h>
#include <openbsc/gsm_data.h>
-#include <openbsc/bsc_subscriber.h>
/**
* A pending paging request
diff --git a/src/libcommon/common_vty.c b/src/libcommon/common_vty.c
index 1443791f0..7157e0070 100644
--- a/src/libcommon/common_vty.c
+++ b/src/libcommon/common_vty.c
@@ -27,8 +27,6 @@
#include <openbsc/gsm_data.h>
#include <openbsc/debug.h>
#include <openbsc/gsm_subscriber.h>
-#include <openbsc/bsc_nat.h>
-#include <openbsc/abis_om2000.h>
#include <osmocom/vty/telnet_interface.h>
#include <osmocom/vty/command.h>
@@ -44,24 +42,6 @@ int bsc_vty_go_parent(struct vty *vty)
vty->node = CONFIG_NODE;
vty->index = NULL;
break;
- case BTS_NODE:
- vty->node = GSMNET_NODE;
- {
- /* set vty->index correctly ! */
- struct gsm_bts *bts = vty->index;
- vty->index = bts->network;
- vty->index_sub = NULL;
- }
- break;
- case TRX_NODE:
- vty->node = BTS_NODE;
- {
- /* set vty->index correctly ! */
- struct gsm_bts_trx *trx = vty->index;
- vty->index = trx->bts;
- vty->index_sub = &trx->bts->description;
- }
- break;
case TS_NODE:
vty->node = TRX_NODE;
{
@@ -71,36 +51,6 @@ int bsc_vty_go_parent(struct vty *vty)
vty->index_sub = &ts->trx->description;
}
break;
- case OML_NODE:
- case OM2K_NODE:
- vty->node = ENABLE_NODE;
- /* NOTE: this only works because it's not part of the config
- * tree, where outer commands are searched via vty_go_parent()
- * and only (!) executed when a matching one is found.
- */
- talloc_free(vty->index);
- vty->index = NULL;
- break;
- case OM2K_CON_GROUP_NODE:
- vty->node = BTS_NODE;
- {
- struct con_group *cg = vty->index;
- struct gsm_bts *bts = cg->bts;
- vty->index = bts;
- vty->index_sub = &bts->description;
- }
- break;
- case NAT_BSC_NODE:
- vty->node = NAT_NODE;
- {
- struct bsc_config *bsc_config = vty->index;
- vty->index = bsc_config->nat;
- }
- break;
- case PGROUP_NODE:
- vty->node = NAT_NODE;
- vty->index = NULL;
- break;
case TRUNK_NODE:
vty->node = MGCP_NODE;
vty->index = NULL;
@@ -111,13 +61,8 @@ int bsc_vty_go_parent(struct vty *vty)
break;
case SMPP_NODE:
case MGCP_NODE:
- case GBPROXY_NODE:
- case SGSN_NODE:
- case NAT_NODE:
- case BSC_NODE:
case MSC_NODE:
case MNCC_INT_NODE:
- case NITB_NODE:
vty->node = CONFIG_NODE;
vty->index = NULL;
break;
@@ -141,8 +86,6 @@ int bsc_vty_is_config_node(struct vty *vty, int node)
switch (node) {
/* add items that are not config */
- case OML_NODE:
- case OM2K_NODE:
case SUBSCR_NODE:
case CONFIG_NODE:
return 0;