wifi: Removed unused functions in WifiInformationElement and WifiInformationElementVector

This commit is contained in:
Sébastien Deronne
2017-11-11 10:32:52 +01:00
parent 9801817883
commit 0ea55a375c
4 changed files with 0 additions and 50 deletions

View File

@@ -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
{

View File

@@ -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;
/**

View File

@@ -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
{

View File

@@ -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