From fce17f873b7cca6943347fdee8a15a2dc232835c Mon Sep 17 00:00:00 2001 From: Robert Schmidt Date: Tue, 15 Oct 2024 09:51:29 +0200 Subject: [PATCH] Remove nr_rrc_common.c: declared functions are not used --- CMakeLists.txt | 1 - doc/Doxyfile | 2 -- openair2/RRC/NR/nr_rrc_common.c | 56 --------------------------------- openair2/RRC/NR/nr_rrc_common.h | 2 -- openair2/RRC/NR/nr_rrc_proto.h | 2 -- 5 files changed, 63 deletions(-) delete mode 100644 openair2/RRC/NR/nr_rrc_common.c diff --git a/CMakeLists.txt b/CMakeLists.txt index 0eb40de493..af48eca7b3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1260,7 +1260,6 @@ set(L2_NR_SRC ${NR_PDCP_SRC} ${NR_SDAP_SRC} ${NR_RRC_DIR}/rrc_gNB.c - ${NR_RRC_DIR}/nr_rrc_common.c ${NR_RRC_DIR}/mac_rrc_dl_direct.c ${NR_RRC_DIR}/mac_rrc_dl_f1ap.c ${NR_RRC_DIR}/nr_rrc_config.c diff --git a/doc/Doxyfile b/doc/Doxyfile index 0d53026705..360bdd0535 100644 --- a/doc/Doxyfile +++ b/doc/Doxyfile @@ -1886,13 +1886,11 @@ INPUT = \ @CMAKE_CURRENT_SOURCE_DIR@/../openair2/RRC/NR/rrc_gNB_radio_bearers.c \ @CMAKE_CURRENT_SOURCE_DIR@/../openair2/RRC/NR/rrc_gNB_NGAP.h \ @CMAKE_CURRENT_SOURCE_DIR@/../openair2/RRC/NR/nr_rrc_proto.h \ -@CMAKE_CURRENT_SOURCE_DIR@/../openair2/RRC/NR/nr_rrc_common.h \ @CMAKE_CURRENT_SOURCE_DIR@/../openair2/RRC/NR/rrc_gNB_UE_context.h \ @CMAKE_CURRENT_SOURCE_DIR@/../openair2/RRC/NR/MESSAGES/asn1_msg.h \ @CMAKE_CURRENT_SOURCE_DIR@/../openair2/RRC/NR/MESSAGES/asn1_msg.c \ @CMAKE_CURRENT_SOURCE_DIR@/../openair2/RRC/NR/rrc_gNB_UE_context.c \ @CMAKE_CURRENT_SOURCE_DIR@/../openair2/RRC/NR/cucp_cuup_e1ap.c \ -@CMAKE_CURRENT_SOURCE_DIR@/../openair2/RRC/NR/nr_rrc_common.c \ @CMAKE_CURRENT_SOURCE_DIR@/../openair2/RRC/NR/rrc_gNB.c \ @CMAKE_CURRENT_SOURCE_DIR@/../openair2/RRC/NR/nr_rrc_config.h \ @CMAKE_CURRENT_SOURCE_DIR@/../openair2/RRC/NR/rrc_gNB_radio_bearers.h \ diff --git a/openair2/RRC/NR/nr_rrc_common.c b/openair2/RRC/NR/nr_rrc_common.c deleted file mode 100644 index 7aa281c343..0000000000 --- a/openair2/RRC/NR/nr_rrc_common.c +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Licensed to the OpenAirInterface (OAI) Software Alliance under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The OpenAirInterface Software Alliance licenses this file to You under - * the OAI Public License, Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.openairinterface.org/?page_id=698 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - *------------------------------------------------------------------------------- - * For more information about the OpenAirInterface (OAI) Software Alliance: - * contact@openairinterface.org - */ - -/*! \file nr_rrc_common.c - * \brief rrc common procedures for gNB - * \author Navid Nikaein and Raymond Knopp, WEI-TAI CHEN - * \date 2011 - 2014, 2018 - * \version 1.0 - * \company Eurecom, NTUST - * \email: navid.nikaein@eurecom.fr and raymond.knopp@eurecom.fr, kroempa@gmail.com - */ - -#include "nr_rrc_extern.h" -#include "LAYER2/NR_MAC_COMMON/nr_mac_extern.h" -#include "COMMON/openair_defs.h" -#include "common/platform_types.h" -#include "RRC/L2_INTERFACE/openair_rrc_L2_interface.h" -#include "LAYER2/RLC/rlc.h" -#include "COMMON/mac_rrc_primitives.h" -#include "common/utils/LOG/log.h" -#include "asn1_msg.h" -#include "common/utils/LOG/vcd_signal_dumper.h" -#include "common/ran_context.h" - -#define DEBUG_NR_RRC 1 - -extern RAN_CONTEXT_t RC; -extern UE_MAC_INST *UE_mac_inst; -extern mui_t rrc_gNB_mui; - -//----------------------------------------------------------------------------- -void rrc_init_nr_srb_param(NR_LCHAN_DESC *chan) -{ - chan->transport_block_size = 4; - chan->max_transport_blocks = 16; - chan->Delay_class = 1; - return; -} diff --git a/openair2/RRC/NR/nr_rrc_common.h b/openair2/RRC/NR/nr_rrc_common.h index 305013ecf4..f81a57f5ad 100644 --- a/openair2/RRC/NR/nr_rrc_common.h +++ b/openair2/RRC/NR/nr_rrc_common.h @@ -59,6 +59,4 @@ typedef struct SRB_INFO_TABLE_ENTRY_NR_s { uint8_t status; } NR_SRB_INFO_TABLE_ENTRY; -void rrc_init_nr_srb_param(NR_LCHAN_DESC *chan); - #endif diff --git a/openair2/RRC/NR/nr_rrc_proto.h b/openair2/RRC/NR/nr_rrc_proto.h index 55e6526b76..5320b369c9 100644 --- a/openair2/RRC/NR/nr_rrc_proto.h +++ b/openair2/RRC/NR/nr_rrc_proto.h @@ -45,8 +45,6 @@ #include "NR_CellGroupConfig.h" #define NR_MAX_SUPPORTED_DL_LAYERS 4 -void rrc_init_nr_srb_param(NR_LCHAN_DESC *chan); - void rrc_gNB_generate_SgNBAdditionRequestAcknowledge( const protocol_ctxt_t *const ctxt_pP,