From c00b5b8c1c89945bb6efdaeb4c90de9a06fea591 Mon Sep 17 00:00:00 2001 From: francescomani Date: Wed, 14 Jan 2026 10:14:20 +0100 Subject: [PATCH] remove function decode_cellGroupConfig since it is declared but never used anywhere --- openair2/LAYER2/NR_MAC_gNB/nr_radio_config.c | 8 -------- openair2/LAYER2/NR_MAC_gNB/nr_radio_config.h | 1 - 2 files changed, 9 deletions(-) diff --git a/openair2/LAYER2/NR_MAC_gNB/nr_radio_config.c b/openair2/LAYER2/NR_MAC_gNB/nr_radio_config.c index 35d4c95ece..50f5fd684c 100644 --- a/openair2/LAYER2/NR_MAC_gNB/nr_radio_config.c +++ b/openair2/LAYER2/NR_MAC_gNB/nr_radio_config.c @@ -3944,14 +3944,6 @@ int encode_cellGroupConfig(NR_CellGroupConfig_t *cellGroupConfig, uint8_t *buffe return (enc_rval.encoded + 7) / 8; } -NR_CellGroupConfig_t *decode_cellGroupConfig(const uint8_t *buffer, int buffer_size) -{ - NR_CellGroupConfig_t *cellGroupConfig = NULL; - asn_dec_rval_t rval = uper_decode(NULL, &asn_DEF_NR_CellGroupConfig, (void **)&cellGroupConfig, buffer, buffer_size, 0, 0); - AssertFatal(rval.code == RC_OK, "could not decode cellGroupConfig\n"); - return cellGroupConfig; -} - static NR_ServingCellConfigCommon_t *clone_ServingCellConfigCommon(const NR_ServingCellConfigCommon_t *scc) { if (scc == NULL) diff --git a/openair2/LAYER2/NR_MAC_gNB/nr_radio_config.h b/openair2/LAYER2/NR_MAC_gNB/nr_radio_config.h index 27cca60b26..6752db8bc8 100644 --- a/openair2/LAYER2/NR_MAC_gNB/nr_radio_config.h +++ b/openair2/LAYER2/NR_MAC_gNB/nr_radio_config.h @@ -97,7 +97,6 @@ void update_cellGroupConfig(NR_CellGroupConfig_t *cellGroupConfig, const nr_mac_config_t *configuration, const NR_ServingCellConfigCommon_t *scc); int encode_cellGroupConfig(NR_CellGroupConfig_t *cellGroupConfig, uint8_t *buffer, int max_buffer_size); -NR_CellGroupConfig_t *decode_cellGroupConfig(const uint8_t *buffer, int max_buffer_size); /* Note: this function returns a new CellGroupConfig for a user with given * configuration, but it will also overwrite the ServingCellConfig passed in