# HG changeset patch # User Andrey Mazo # Date 1255602739 -14400 # Node ID 79ff6ad1adbb7b4677759ddf52028b68b0515168 # Parent 21a4f34518ffd2a1db43c281ef03b62a2bf4500b remove some redundant clean ups, includes diff -r 21a4f34518ff -r 79ff6ad1adbb src/devices/mesh/dot11s/ie-dot11s-beacon-timing.cc --- a/src/devices/mesh/dot11s/ie-dot11s-beacon-timing.cc Thu Oct 15 14:10:02 2009 +0400 +++ b/src/devices/mesh/dot11s/ie-dot11s-beacon-timing.cc Thu Oct 15 14:32:19 2009 +0400 @@ -118,19 +118,11 @@ void IeBeaconTiming::ClearTimingElement () { - uint16_t to_delete = 0; - uint16_t i; for (NeighboursTimingUnitsList::iterator j = m_neighbours.begin (); j != m_neighbours.end (); j++) { - to_delete++; (*j) = 0; } - for (i = 0; i < to_delete; i++) - { - m_neighbours.pop_back (); - } m_neighbours.clear (); - } uint8_t IeBeaconTiming::GetInformationSize () const diff -r 21a4f34518ff -r 79ff6ad1adbb src/devices/mesh/dot11s/ie-dot11s-preq.cc --- a/src/devices/mesh/dot11s/ie-dot11s-preq.cc Thu Oct 15 14:10:02 2009 +0400 +++ b/src/devices/mesh/dot11s/ie-dot11s-preq.cc Thu Oct 15 14:32:19 2009 +0400 @@ -373,16 +373,11 @@ void IePreq::ClearDestinationAddressElements () { - int i; for (std::vector >::iterator j = m_destinations.begin (); j != m_destinations.end (); j++) { (*j) = 0; } - for (i = 0; i < m_destCount; i++) - { - m_destinations.pop_back (); - } m_destinations.clear (); m_destCount = 0; } diff -r 21a4f34518ff -r 79ff6ad1adbb src/devices/mesh/mesh-wifi-beacon.h --- a/src/devices/mesh/mesh-wifi-beacon.h Thu Oct 15 14:10:02 2009 +0400 +++ b/src/devices/mesh/mesh-wifi-beacon.h Thu Oct 15 14:32:19 2009 +0400 @@ -27,8 +27,6 @@ #include "ns3/wifi-mac-header.h" #include "ns3/wifi-information-element-vector.h" -#include - namespace ns3 { /** diff -r 21a4f34518ff -r 79ff6ad1adbb src/devices/mesh/wifi-information-element-vector.cc --- a/src/devices/mesh/wifi-information-element-vector.cc Thu Oct 15 14:10:02 2009 +0400 +++ b/src/devices/mesh/wifi-information-element-vector.cc Thu Oct 15 14:32:19 2009 +0400 @@ -74,7 +74,7 @@ void WifiInformationElementVector::Serialize (Buffer::Iterator start) const { - for(std::vector >::const_iterator i = m_elements.begin (); i != m_elements.end (); i ++) + for(IE_VECTOR::const_iterator i = m_elements.begin (); i != m_elements.end (); i ++) { start.WriteU8((*i)->ElementId ()); start.WriteU8 ((*i)->GetInformationSize ()); diff -r 21a4f34518ff -r 79ff6ad1adbb src/devices/wifi/interference-helper.cc --- a/src/devices/wifi/interference-helper.cc Thu Oct 15 14:10:02 2009 +0400 +++ b/src/devices/wifi/interference-helper.cc Thu Oct 15 14:32:19 2009 +0400 @@ -611,7 +611,7 @@ { *i = 0; } - m_events.erase (m_events.begin (), m_events.end ()); + m_events.clear (); } void