RLC reference is not needed in the LTE simple device
This commit is contained in:
@@ -37,11 +37,7 @@ TypeId LteSimpleNetDevice::GetTypeId (void)
|
||||
tid =
|
||||
TypeId ("ns3::LteSimpleNetDevice")
|
||||
.SetParent<SimpleNetDevice> ()
|
||||
.AddAttribute ("LteRlc",
|
||||
"The RLC instance",
|
||||
PointerValue (),
|
||||
MakePointerAccessor (&LteSimpleNetDevice::m_rlc),
|
||||
MakePointerChecker <LteRlc> ())
|
||||
.AddConstructor<LteSimpleNetDevice> ()
|
||||
;
|
||||
|
||||
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> node, Ptr<LteRlc> rlc)
|
||||
LteSimpleNetDevice::LteSimpleNetDevice (Ptr<Node> 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
|
||||
|
||||
@@ -42,7 +42,7 @@ public:
|
||||
static TypeId GetTypeId (void);
|
||||
|
||||
LteSimpleNetDevice (void);
|
||||
LteSimpleNetDevice (Ptr<Node> node, Ptr<LteRlc> rlc);
|
||||
LteSimpleNetDevice (Ptr<Node> node);
|
||||
|
||||
virtual ~LteSimpleNetDevice (void);
|
||||
virtual void DoDispose ();
|
||||
@@ -56,11 +56,6 @@ protected:
|
||||
// inherited from Object
|
||||
virtual void DoStart (void);
|
||||
|
||||
|
||||
private:
|
||||
|
||||
Ptr<LteRlc> m_rlc;
|
||||
|
||||
};
|
||||
|
||||
} // namespace ns3
|
||||
|
||||
Reference in New Issue
Block a user