Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[NS3] unused variable removed
authorLucas Schnorr <Lucas.Schnorr@imag.fr>
Mon, 5 Sep 2011 11:23:02 +0000 (13:23 +0200)
committerLucas Schnorr <Lucas.Schnorr@imag.fr>
Mon, 5 Sep 2011 11:23:02 +0000 (13:23 +0200)
src/surf/ns3/ns3_simulator.cc
src/surf/ns3/ns3_simulator.h

index 07e3136..6c167db 100644 (file)
@@ -61,7 +61,6 @@ void NS3Sim::create_flow_NS3(
        MySocket *mysocket = new MySocket();
        mysocket->totalBytes = totalBytes;
        mysocket->remaining = totalBytes;
-       mysocket->last_amount_sent = 0;
        mysocket->bufferedBytes = 0;
        mysocket->sentBytes = 0;
        mysocket->finished = 0;
@@ -132,7 +131,6 @@ static void send_callback(Ptr<Socket> localSocket, uint32_t txSpace){
          if(amountSent < 0)
            return;
 
-         (mysocket->last_amount_sent) += amountSent;
          (mysocket->bufferedBytes) += amountSent;
          (mysocket->remaining) -= amountSent;
          //cout << "[" << Simulator::Now ().GetSeconds() << "] " << "Send one packet, remaining "<<  mysocket->remaining << " bytes!" << endl;
index 04acbef..f3bbe3e 100644 (file)
@@ -25,7 +25,6 @@ struct MySocket{
   uint32_t sentBytes;
   uint32_t remaining;
   uint32_t totalBytes;
-  uint32_t last_amount_sent;
   char finished;
   void* action;
 };