From d5d3594f4987dd15ad60a312742452f74d3432c9 Mon Sep 17 00:00:00 2001 From: Xavier Arteaga Date: Tue, 24 Nov 2020 13:06:49 +0100 Subject: [PATCH] Removed unused attribute --- srsue/hdr/phy/nr/sf_worker.h | 3 +-- srsue/src/phy/nr/sf_worker.cc | 3 +-- srsue/src/phy/nr/worker_pool.cc | 2 +- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/srsue/hdr/phy/nr/sf_worker.h b/srsue/hdr/phy/nr/sf_worker.h index 385fa5391..4ef4805f4 100644 --- a/srsue/hdr/phy/nr/sf_worker.h +++ b/srsue/hdr/phy/nr/sf_worker.h @@ -40,7 +40,7 @@ namespace nr { class sf_worker final : public srslte::thread_pool::worker { public: - sf_worker(phy_common* phy_, phy_nr_state* phy_state_, srslte::log* log); + sf_worker(phy_nr_state* phy_state_, srslte::log* log); ~sf_worker() = default; bool set_carrier_unlocked(uint32_t cc_idx, const srslte_carrier_nr_t* carrier_); @@ -56,7 +56,6 @@ private: std::vector > cc_workers; - phy_common* phy = nullptr; phy_nr_state* phy_state = nullptr; srslte::log* log_h = nullptr; }; diff --git a/srsue/src/phy/nr/sf_worker.cc b/srsue/src/phy/nr/sf_worker.cc index 1c8aa3deb..9e4f51d81 100644 --- a/srsue/src/phy/nr/sf_worker.cc +++ b/srsue/src/phy/nr/sf_worker.cc @@ -23,8 +23,7 @@ namespace srsue { namespace nr { -sf_worker::sf_worker(phy_common* phy_, phy_nr_state* phy_state_, srslte::log* log) : - phy(phy_), phy_state(phy_state_), log_h(log) +sf_worker::sf_worker(phy_nr_state* phy_state_, srslte::log* log) : phy_state(phy_state_), log_h(log) { for (uint32_t i = 0; i < phy_state->args.nof_carriers; i++) { cc_worker* w = new cc_worker(i, log, phy_state); diff --git a/srsue/src/phy/nr/worker_pool.cc b/srsue/src/phy/nr/worker_pool.cc index cf3e5a289..6cf6ecf6d 100644 --- a/srsue/src/phy/nr/worker_pool.cc +++ b/srsue/src/phy/nr/worker_pool.cc @@ -50,7 +50,7 @@ bool worker_pool::init(phy_common* common, srslte::logger* logger, int prio) // Add workers to workers pool and start threads for (uint32_t i = 0; i < common->args->nof_phy_threads; i++) { - auto w = new sf_worker(common, &phy_state, (srslte::log*)log_vec[i].get()); + auto w = new sf_worker(&phy_state, (srslte::log*)log_vec[i].get()); pool.init_worker(i, w, prio, common->args->worker_cpu_mask); workers.push_back(std::unique_ptr(w));