From 349424220fd1132096bb4ef4233da13b1aed7a22 Mon Sep 17 00:00:00 2001 From: Zoltan Bojthe Date: Tue, 18 Jun 2024 11:17:55 +0200 Subject: [PATCH] fixup: BackgroundCellTrafficManager: remove nrCqiTable, getCqiFromTable(): already exists in base BackgroundTrafficManager class --- .../BackgroundCellTrafficManager.cc | 29 ------------------- .../BackgroundCellTrafficManager.h | 3 -- 2 files changed, 32 deletions(-) diff --git a/src/nodes/backgroundCell/BackgroundCellTrafficManager.cc b/src/nodes/backgroundCell/BackgroundCellTrafficManager.cc index 01ca5c668..2bfb211c8 100644 --- a/src/nodes/backgroundCell/BackgroundCellTrafficManager.cc +++ b/src/nodes/backgroundCell/BackgroundCellTrafficManager.cc @@ -22,35 +22,6 @@ namespace simu5g { Define_Module(BackgroundCellTrafficManager); -double BackgroundCellTrafficManager::nrCqiTable[16] = { - -9999.0, - -9999.0, - -9999.0, - -5.5, - -3.5, - -1.5, - 0.5, - 4.5, - 5.5, - 7.5, - 10.5, - 12.5, - 15.5, - 17.5, - 21.5, - 25.5 -}; - -double BackgroundCellTrafficManager::getCqiFromTable(double snr) -{ - for (unsigned int i=0; i<16; i++) - { - if (snr < nrCqiTable[i]) - return i-1; - } - return 15; -} - BackgroundCellTrafficManager::BackgroundCellTrafficManager() { } diff --git a/src/nodes/backgroundCell/BackgroundCellTrafficManager.h b/src/nodes/backgroundCell/BackgroundCellTrafficManager.h index 375bd7a91..ae6228106 100644 --- a/src/nodes/backgroundCell/BackgroundCellTrafficManager.h +++ b/src/nodes/backgroundCell/BackgroundCellTrafficManager.h @@ -37,9 +37,6 @@ class BackgroundCellTrafficManager : public BackgroundTrafficManager // reference to class AMC for this cell BackgroundCellAmc* bgAmc_; - static double nrCqiTable[16]; - double getCqiFromTable(double snr); - public: BackgroundCellTrafficManager(); virtual ~BackgroundCellTrafficManager();