wifi: Removed unused functions in WifiInformationElement and WifiInformationElementVector
This commit is contained in:
@@ -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<WifiInformationElement> a, Ptr<WifiInformationElement> b) const
|
||||
{
|
||||
return ((*PeekPointer (a)) < (*PeekPointer (b)));
|
||||
}
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
|
||||
uint32_t
|
||||
WifiInformationElementVector::GetSize () const
|
||||
{
|
||||
|
||||
@@ -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<Ptr<WifiInformationElement> >::iterator Iterator;
|
||||
/**
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user