[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:
Abtin Keshavarzian
2026-01-28 18:34:33 -08:00
committed by GitHub
parent 36906a04ce
commit 8da5e193c7
2 changed files with 0 additions and 12 deletions
-2
View File
@@ -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;
-10
View File
@@ -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.
*