diff --git a/src/lte/test/lte-simple-net-device.cc b/src/lte/test/lte-simple-net-device.cc index 07188983d..bcc58ed6b 100644 --- a/src/lte/test/lte-simple-net-device.cc +++ b/src/lte/test/lte-simple-net-device.cc @@ -37,11 +37,7 @@ TypeId LteSimpleNetDevice::GetTypeId (void) tid = TypeId ("ns3::LteSimpleNetDevice") .SetParent () - .AddAttribute ("LteRlc", - "The RLC instance", - PointerValue (), - MakePointerAccessor (&LteSimpleNetDevice::m_rlc), - MakePointerChecker ()) + .AddConstructor () ; return tid; @@ -51,14 +47,12 @@ TypeId LteSimpleNetDevice::GetTypeId (void) LteSimpleNetDevice::LteSimpleNetDevice (void) { NS_LOG_FUNCTION (this); - NS_FATAL_ERROR ("This constructor should not be called"); } -LteSimpleNetDevice::LteSimpleNetDevice (Ptr node, Ptr rlc) +LteSimpleNetDevice::LteSimpleNetDevice (Ptr node) { NS_LOG_FUNCTION (this); - m_rlc = rlc; SetNode (node); } @@ -71,8 +65,6 @@ void LteSimpleNetDevice::DoDispose (void) { NS_LOG_FUNCTION (this); - m_rlc->Dispose (); - m_rlc = 0; SimpleNetDevice::DoDispose (); } @@ -81,7 +73,6 @@ void LteSimpleNetDevice::DoStart (void) { NS_LOG_FUNCTION (this); - m_rlc->Start (); } bool diff --git a/src/lte/test/lte-simple-net-device.h b/src/lte/test/lte-simple-net-device.h index d94fda119..e2a13a741 100644 --- a/src/lte/test/lte-simple-net-device.h +++ b/src/lte/test/lte-simple-net-device.h @@ -42,7 +42,7 @@ public: static TypeId GetTypeId (void); LteSimpleNetDevice (void); - LteSimpleNetDevice (Ptr node, Ptr rlc); + LteSimpleNetDevice (Ptr node); virtual ~LteSimpleNetDevice (void); virtual void DoDispose (); @@ -56,11 +56,6 @@ protected: // inherited from Object virtual void DoStart (void); - -private: - - Ptr m_rlc; - }; } // namespace ns3