mirror of
https://github.com/espressif/openthread.git
synced 2026-07-31 16:17:47 +00:00
[mac] remove redundant ExtAddress::operator==() (#12344)
The `ExtAddress` class inherits from `Equatable<ExtAddress>`, which already provides an `operator==` implementation that compares the object's memory content.
This commit is contained in:
@@ -75,8 +75,6 @@ void ExtAddress::SetFromIid(const Ip6::InterfaceIdentifier &aIid)
|
||||
|
||||
#endif
|
||||
|
||||
bool ExtAddress::operator==(const ExtAddress &aOther) const { return (memcmp(m8, aOther.m8, sizeof(m8)) == 0); }
|
||||
|
||||
ExtAddress::InfoString ExtAddress::ToString(void) const
|
||||
{
|
||||
InfoString string;
|
||||
|
||||
@@ -220,16 +220,6 @@ public:
|
||||
CopyAddress(aBuffer, m8, aByteOrder);
|
||||
}
|
||||
|
||||
/**
|
||||
* Overloads operator `==` to evaluate whether or not two `ExtAddress` instances are equal.
|
||||
*
|
||||
* @param[in] aOther The other `ExtAddress` instance to compare with.
|
||||
*
|
||||
* @retval TRUE If the two `ExtAddress` instances are equal.
|
||||
* @retval FALSE If the two `ExtAddress` instances are not equal.
|
||||
*/
|
||||
bool operator==(const ExtAddress &aOther) const;
|
||||
|
||||
/**
|
||||
* Converts an address to a string.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user