remove external NetDeviceList and use the Node's integrated list
This commit is contained in:
1 parent
f856c72ac2
commit
6d1fbb99fa
8 files changed
+2
-132
No files matched your search
@@ -44,7 +44,6 @@ public:
|
||||
InternetNode::InternetNode()
|
||||
{
|
||||
// Instantiate the capabilities
|
||||
m_netDevices = new NetDeviceList();
|
||||
m_applicationList = new ApplicationList();
|
||||
m_l3Demux = new L3Demux(this);
|
||||
m_ipv4L4Demux = new Ipv4L4Demux(this);
|
||||
@@ -55,7 +54,6 @@ InternetNode::InternetNode()
|
||||
|
||||
InternetNode::InternetNode (InternetNode const &o)
|
||||
{
|
||||
m_netDevices = new NetDeviceList ();
|
||||
m_applicationList = new ApplicationList();
|
||||
m_l3Demux = o.m_l3Demux->Copy (this);
|
||||
m_ipv4L4Demux = o.m_ipv4L4Demux->Copy (this);
|
||||
@@ -63,11 +61,9 @@ InternetNode::InternetNode (InternetNode const &o)
|
||||
InternetNode const &
|
||||
InternetNode::operator = (InternetNode const &o)
|
||||
{
|
||||
delete m_netDevices;
|
||||
delete m_applicationList;
|
||||
delete m_l3Demux;
|
||||
delete m_ipv4L4Demux;
|
||||
m_netDevices = new NetDeviceList ();
|
||||
m_l3Demux = o.m_l3Demux->Copy (this);
|
||||
m_ipv4L4Demux = o.m_ipv4L4Demux->Copy (this);
|
||||
return *this;
|
||||
@@ -75,7 +71,6 @@ InternetNode::operator = (InternetNode const &o)
|
||||
|
||||
InternetNode::~InternetNode ()
|
||||
{
|
||||
delete m_netDevices;
|
||||
delete m_applicationList;
|
||||
delete m_l3Demux;
|
||||
delete m_ipv4L4Demux;
|
||||
@@ -112,12 +107,6 @@ InternetNode::CreateTraceResolver (TraceContext const &context)
|
||||
}
|
||||
|
||||
|
||||
NetDeviceList*
|
||||
InternetNode::GetNetDeviceList() const
|
||||
{
|
||||
return m_netDevices;
|
||||
}
|
||||
|
||||
ApplicationList*
|
||||
InternetNode::GetApplicationList() const
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user