remove unused parameters from mac::ue

master
Francisco 4 years ago committed by Francisco Paisana
parent 62a6d9a8dc
commit fbeb87c53e

@ -130,9 +130,7 @@ public:
phy_interface_stack_lte* phy_, phy_interface_stack_lte* phy_,
srslog::basic_logger& logger, srslog::basic_logger& logger,
uint32_t nof_cells_, uint32_t nof_cells_,
srsran::obj_pool_itf<ue_cc_softbuffers>* softbuffer_pool, srsran::obj_pool_itf<ue_cc_softbuffers>* softbuffer_pool);
uint32_t nof_rx_harq_proc = SRSRAN_FDD_NOF_HARQ,
uint32_t nof_tx_harq_proc = SRSRAN_FDD_NOF_HARQ);
virtual ~ue(); virtual ~ue();
void reset(); void reset();
@ -191,11 +189,8 @@ private:
srsran::mac_pcap_net* pcap_net = nullptr; srsran::mac_pcap_net* pcap_net = nullptr;
uint64_t conres_id = 0; uint64_t conres_id = 0;
uint16_t rnti = 0; uint16_t rnti = 0;
uint32_t nof_prb = 0;
uint32_t last_tti = 0; uint32_t last_tti = 0;
uint32_t nof_failures = 0; uint32_t nof_failures = 0;
int nof_rx_harq_proc = 0;
int nof_tx_harq_proc = 0;
srsran::obj_pool_itf<ue_cc_softbuffers>* softbuffer_pool = nullptr; srsran::obj_pool_itf<ue_cc_softbuffers>* softbuffer_pool = nullptr;

@ -199,11 +199,8 @@ ue::ue(uint16_t rnti_,
phy_interface_stack_lte* phy_, phy_interface_stack_lte* phy_,
srslog::basic_logger& logger_, srslog::basic_logger& logger_,
uint32_t nof_cells_, uint32_t nof_cells_,
srsran::obj_pool_itf<ue_cc_softbuffers>* softbuffer_pool_, srsran::obj_pool_itf<ue_cc_softbuffers>* softbuffer_pool_) :
uint32_t nof_rx_harq_proc_,
uint32_t nof_tx_harq_proc_) :
rnti(rnti_), rnti(rnti_),
nof_prb(nof_prb_),
sched(sched_), sched(sched_),
rrc(rrc_), rrc(rrc_),
rlc(rlc_), rlc(rlc_),
@ -213,8 +210,6 @@ ue::ue(uint16_t rnti_,
mch_mac_msg_dl(10, logger_), mch_mac_msg_dl(10, logger_),
mac_msg_ul(20, logger_), mac_msg_ul(20, logger_),
pdus(logger_), pdus(logger_),
nof_rx_harq_proc(nof_rx_harq_proc_),
nof_tx_harq_proc(nof_tx_harq_proc_),
ta_fsm(this), ta_fsm(this),
softbuffer_pool(softbuffer_pool_) softbuffer_pool(softbuffer_pool_)
{ {
@ -262,7 +257,7 @@ srsran_softbuffer_rx_t* ue::get_rx_softbuffer(const uint32_t ue_cc_idx, const ui
return nullptr; return nullptr;
} }
return &cc_buffers[ue_cc_idx].get_rx_softbuffer(tti % nof_rx_harq_proc); return &cc_buffers[ue_cc_idx].get_rx_softbuffer(tti);
} }
srsran_softbuffer_tx_t* srsran_softbuffer_tx_t*

Loading…
Cancel
Save