From 7e29430c81436763eabc876c01546cf7d53ef0d1 Mon Sep 17 00:00:00 2001 From: Ismael Gomez Date: Thu, 14 Dec 2017 11:15:26 +0100 Subject: [PATCH] remove unused function --- srsue/hdr/phy/phch_worker.h | 4 +--- srsue/src/phy/phch_recv.cc | 2 +- srsue/src/phy/phch_worker.cc | 4 ---- 3 files changed, 2 insertions(+), 8 deletions(-) diff --git a/srsue/hdr/phy/phch_worker.h b/srsue/hdr/phy/phch_worker.h index 5378a9428..f711ade09 100644 --- a/srsue/hdr/phy/phch_worker.h +++ b/srsue/hdr/phy/phch_worker.h @@ -67,9 +67,7 @@ public: int read_pdsch_d(cf_t *pdsch_d); void start_plot(); - float get_ref_cfo(); - -private: +private: /* Inherited from thread_pool::worker. Function called every subframe to run the DL/UL processing */ void work_imp(); diff --git a/srsue/src/phy/phch_recv.cc b/srsue/src/phy/phch_recv.cc index 9b728cddd..473011d7b 100644 --- a/srsue/src/phy/phch_recv.cc +++ b/srsue/src/phy/phch_recv.cc @@ -1256,7 +1256,7 @@ int phch_recv::scell_recv::find_cells(cf_t *input_buffer, float rx_gain_offset, srslte_sync_reset(&sync_find); srslte_sync_cfo_reset(&sync_find); - int sf5_cnt=0; + uint32_t sf5_cnt=0; do { sync_res = srslte_sync_find(&sync_find, input_buffer, sf5_cnt*5*sf_len, &peak_idx); } while(sync_res != SRSLTE_SYNC_FOUND && sf5_cnt < nof_sf/5); diff --git a/srsue/src/phy/phch_worker.cc b/srsue/src/phy/phch_worker.cc index a5ccc9982..934be8aa7 100644 --- a/srsue/src/phy/phch_worker.cc +++ b/srsue/src/phy/phch_worker.cc @@ -141,10 +141,6 @@ bool phch_worker::init(uint32_t max_prb, srslte::log *log_h, chest_feedback_itf return true; } -float phch_worker::get_ref_cfo() { - return srslte_chest_dl_get_cfo(&ue_dl.chest); -} - bool phch_worker::set_cell(srslte_cell_t cell_) { if (cell.id != cell_.id || !cell_initiated) {