Skip to content

Commit cd126c0

Browse files
sgryphonnuclearcat
authored andcommitted
Remove != test (it is causing a conflict)
1 parent d2178b1 commit cd126c0

File tree

2 files changed

+0
-7
lines changed

2 files changed

+0
-7
lines changed

cores/esp32/IPAddress.cpp

-6
Original file line numberDiff line numberDiff line change
@@ -114,12 +114,6 @@ bool IPAddress::operator==(const IPAddress& addr) const
114114
&& (memcmp(addr._address.bytes, _address.bytes, sizeof(_address.bytes)) == 0);
115115
}
116116

117-
bool IPAddress::operator!=(const IPAddress& addr) const
118-
{
119-
return (addr._type != _type)
120-
|| (memcmp(addr._address.bytes, _address.bytes, sizeof(_address.bytes)) != 0);
121-
}
122-
123117
bool IPAddress::operator==(const uint8_t* addr) const
124118
{
125119
// IPv4 only comparison to byte pointer

cores/esp32/IPAddress.h

-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ class IPAddress: public Printable
7575
}
7676

7777
bool operator==(const IPAddress& addr) const;
78-
bool operator!=(const IPAddress& addr) const;
7978
bool operator==(const uint8_t* addr) const;
8079

8180
// Overloaded index operator to allow getting and setting individual octets of the address

0 commit comments

Comments
 (0)