remove unneeded array

This commit is contained in:
Egemen K. Cetinkaya
2010-11-09 20:27:55 -08:00
parent 76daf64826
commit d50f39456e

View File

@@ -155,8 +155,6 @@ int main (int argc, char *argv[])
uint32_t linkCount = 0;
Ipv4InterfaceContainer n_ic[n_nodes][n_nodes]; // Create an array of interface containers for links
for (size_t i = 0; i < Adj_Matrix.size (); i++)
{
for (size_t j = 0; j < Adj_Matrix[i].size (); j++)
@@ -166,7 +164,7 @@ int main (int argc, char *argv[])
{
NodeContainer n_links = NodeContainer (nodes.Get (i), nodes.Get (j));
NetDeviceContainer n_devs = p2p.Install (n_links);
n_ic[i][j] = ipv4_n.Assign (n_devs);
ipv4_n.Assign (n_devs);
ipv4_n.NewNetwork ();
linkCount++;
NS_LOG_INFO ("matrix element [" << i << "][" << j << "] is 1");