Removed unused logger

master
Xavier Arteaga 4 years ago committed by Xavier Arteaga
parent c60d207826
commit aaa789f530

@ -68,8 +68,7 @@ private:
class phy final : public ue_lte_phy_base, public srslte::thread
{
public:
explicit phy(srslte::logger* logger_, srslog::sink& log_sink) :
logger(logger_),
explicit phy(srslog::sink& log_sink) :
log_sink(log_sink),
logger_phy(srslog::fetch_basic_logger("PHY", log_sink)),
logger_phy_lib(srslog::fetch_basic_logger("PHY_LIB", log_sink)),
@ -182,7 +181,6 @@ private:
const static int WORKERS_THREAD_PRIO = 2;
srslte::radio_interface_phy* radio = nullptr;
srslte::logger* logger = nullptr;
srslog::sink& log_sink;
srslog::basic_logger& logger_phy;

@ -73,7 +73,7 @@ int ue::init(const all_args_t& args_, srslte::logger* logger_)
return SRSLTE_ERROR;
}
std::unique_ptr<srsue::phy> lte_phy = std::unique_ptr<srsue::phy>(new srsue::phy(old_logger, log_sink));
std::unique_ptr<srsue::phy> lte_phy = std::unique_ptr<srsue::phy>(new srsue::phy(log_sink));
if (!lte_phy) {
srslte::console("Error creating LTE PHY instance.\n");
return SRSLTE_ERROR;

@ -373,7 +373,7 @@ public:
sf_len = SRSLTE_SF_LEN_PRB(cell.nof_prb);
// Initialise UE
phy = std::unique_ptr<srsue::phy>(new srsue::phy(&logger_, srslog::get_default_sink()));
phy = std::unique_ptr<srsue::phy>(new srsue::phy(srslog::get_default_sink()));
phy->init(phy_args, &stack, &radio);
// Initialise DL baseband buffers

Loading…
Cancel
Save