diff --git a/src/wifi/model/wifi-information-element-vector.cc b/src/wifi/model/wifi-information-element-vector.cc index 740e099d6..78bb06249 100644 --- a/src/wifi/model/wifi-information-element-vector.cc +++ b/src/wifi/model/wifi-information-element-vector.cc @@ -130,12 +130,6 @@ WifiInformationElementVector::Print (std::ostream & os) const } } -void -WifiInformationElementVector::SetMaxSize (uint16_t size) -{ - m_maxSize = size; -} - WifiInformationElementVector::Iterator WifiInformationElementVector::Begin () { @@ -172,29 +166,6 @@ WifiInformationElementVector::FindFirst (WifiInformationElementId id) const return 0; } - -namespace { - -/// PIEComparator structure -struct PIEComparator -{ - /** - * comparison operator - * - * \param a left side - * \param b right side - * \returns true if less than - */ - bool - operator () (Ptr a, Ptr b) const - { - return ((*PeekPointer (a)) < (*PeekPointer (b))); - } -}; - -} - - uint32_t WifiInformationElementVector::GetSize () const { diff --git a/src/wifi/model/wifi-information-element-vector.h b/src/wifi/model/wifi-information-element-vector.h index 35ce92feb..754797667 100644 --- a/src/wifi/model/wifi-information-element-vector.h +++ b/src/wifi/model/wifi-information-element-vector.h @@ -78,12 +78,6 @@ public: * \return deserialized bytes */ virtual uint32_t DeserializeSingleIe (Buffer::Iterator start); - /** - * Set maximum size to control overflow of the max packet length - * - * \param size the maximum size to set (bytes) - */ - void SetMaxSize (uint16_t size); /// As soon as this is a vector, we define an Iterator typedef std::vector >::iterator Iterator; /** diff --git a/src/wifi/model/wifi-information-element.cc b/src/wifi/model/wifi-information-element.cc index 36e9c3b1b..bea446576 100644 --- a/src/wifi/model/wifi-information-element.cc +++ b/src/wifi/model/wifi-information-element.cc @@ -84,12 +84,6 @@ WifiInformationElement::DeserializeIfPresent (Buffer::Iterator i) return i; } -bool -WifiInformationElement::operator< (WifiInformationElement const & a) const -{ - return (ElementId () < a.ElementId ()); -} - bool WifiInformationElement::operator== (WifiInformationElement const & a) const { diff --git a/src/wifi/model/wifi-information-element.h b/src/wifi/model/wifi-information-element.h index 44dd1d586..d370c2dc2 100644 --- a/src/wifi/model/wifi-information-element.h +++ b/src/wifi/model/wifi-information-element.h @@ -309,15 +309,6 @@ public: * \param os output stream */ virtual void Print (std::ostream &os) const; - /** - * Compare information elements using Element ID - * - * \param a another information element to compare with - * - * \return true if the Element ID is less than the other IE Element ID, - * false otherwise - */ - virtual bool operator< (WifiInformationElement const & a) const; /** * Compare two IEs for equality by ID & Length, and then through * memcmp of serialised version