Remove unused variable in enb vnf_phy_nr.

master
faluco 4 years ago committed by faluco
parent a7bb3ce7d0
commit b30845fae4

@ -31,7 +31,7 @@ struct nr_phy_cfg_t {
class vnf_phy_nr : public srsenb::enb_phy_base, public srsenb::phy_interface_stack_nr class vnf_phy_nr : public srsenb::enb_phy_base, public srsenb::phy_interface_stack_nr
{ {
public: public:
vnf_phy_nr(srslte::logger* logger_); vnf_phy_nr() = default;
~vnf_phy_nr(); ~vnf_phy_nr();
int init(const srsenb::phy_args_t& args, const nr_phy_cfg_t& cfg, srsenb::stack_interface_phy_nr* stack_); int init(const srsenb::phy_args_t& args, const nr_phy_cfg_t& cfg, srsenb::stack_interface_phy_nr* stack_);
@ -53,8 +53,6 @@ public:
} }
private: private:
srslte::logger* logger = nullptr;
std::unique_ptr<srslte::srslte_basic_vnf> vnf = nullptr; std::unique_ptr<srslte::srslte_basic_vnf> vnf = nullptr;
bool initialized = false; bool initialized = false;

@ -107,7 +107,7 @@ int enb::init(const all_args_t& args_, srslte::logger* logger_)
#ifdef HAVE_5GNR #ifdef HAVE_5GNR
std::unique_ptr<srsenb::gnb_stack_nr> nr_stack(new srsenb::gnb_stack_nr(logger)); std::unique_ptr<srsenb::gnb_stack_nr> nr_stack(new srsenb::gnb_stack_nr(logger));
std::unique_ptr<srslte::radio_null> nr_radio(new srslte::radio_null(logger)); std::unique_ptr<srslte::radio_null> nr_radio(new srslte::radio_null(logger));
std::unique_ptr<srsenb::vnf_phy_nr> nr_phy(new srsenb::vnf_phy_nr(logger)); std::unique_ptr<srsenb::vnf_phy_nr> nr_phy(new srsenb::vnf_phy_nr);
// Init layers // Init layers
if (nr_radio->init(args.rf, nullptr)) { if (nr_radio->init(args.rf, nullptr)) {

@ -28,8 +28,6 @@ using namespace std;
namespace srsenb { namespace srsenb {
vnf_phy_nr::vnf_phy_nr(srslte::logger* logger_) : logger(logger_) {}
vnf_phy_nr::~vnf_phy_nr() vnf_phy_nr::~vnf_phy_nr()
{ {
stop(); stop();

Loading…
Cancel
Save