diff --git a/srsue/hdr/phy/vnf_phy_nr.h b/srsue/hdr/phy/vnf_phy_nr.h index 74823a225..3bbf1c890 100644 --- a/srsue/hdr/phy/vnf_phy_nr.h +++ b/srsue/hdr/phy/vnf_phy_nr.h @@ -28,7 +28,7 @@ namespace srsue { class vnf_phy_nr : public srsue::ue_phy_base, public srsue::phy_interface_stack_nr { public: - vnf_phy_nr(srslte::logger* logger_); + vnf_phy_nr() = default; ~vnf_phy_nr(); int init(const srsue::phy_args_t& args, srsue::stack_interface_phy_nr* stack_); @@ -50,8 +50,6 @@ public: int tx_request(const tx_request_t& request); private: - srslte::logger* logger = nullptr; - std::unique_ptr vnf; srsue::stack_interface_phy_nr* stack = nullptr; diff --git a/srsue/src/phy/vnf_phy_nr.cc b/srsue/src/phy/vnf_phy_nr.cc index 91d6f5568..4b274f9e5 100644 --- a/srsue/src/phy/vnf_phy_nr.cc +++ b/srsue/src/phy/vnf_phy_nr.cc @@ -28,8 +28,6 @@ using namespace std; namespace srsue { -vnf_phy_nr::vnf_phy_nr(srslte::logger* logger_) : logger(logger_) {} - vnf_phy_nr::~vnf_phy_nr() { stop(); diff --git a/srsue/src/ue.cc b/srsue/src/ue.cc index b74d2a144..b808f6625 100644 --- a/srsue/src/ue.cc +++ b/srsue/src/ue.cc @@ -117,7 +117,7 @@ int ue::init(const all_args_t& args_, srslte::logger* logger_) #ifdef HAVE_5GNR std::unique_ptr nr_stack(new srsue::ue_stack_nr(old_logger)); std::unique_ptr nr_radio(new srslte::radio_null(old_logger)); - std::unique_ptr nr_phy(new srsue::vnf_phy_nr(old_logger)); + std::unique_ptr nr_phy(new srsue::vnf_phy_nr); std::unique_ptr gw_ptr(new gw()); // Init layers