diff --git a/ip.cpp.rl b/ip.cpp.rl index f9c24e9a..3d15e765 100644 --- a/ip.cpp.rl +++ b/ip.cpp.rl @@ -54,19 +54,6 @@ ipv4::ip::ip (uint8_t a, uint8_t b, uint8_t c, uint8_t d) /////////////////////////////////////////////////////////////////////////////// -ipv4::ip& -ipv4::ip::operator= (const ipv4::ip &rhs) -{ - m_octets[0] = rhs.m_octets[0]; - m_octets[1] = rhs.m_octets[1]; - m_octets[2] = rhs.m_octets[2]; - m_octets[3] = rhs.m_octets[3]; - - return *this; -} - - -//----------------------------------------------------------------------------- bool ipv4::ip::operator== (const ipv4::ip &rhs) const { diff --git a/ip.hpp b/ip.hpp index 61318eea..6765e847 100644 --- a/ip.hpp +++ b/ip.hpp @@ -34,8 +34,7 @@ namespace ipv4 { explicit ip (uint32_t i); ip (uint8_t a, uint8_t b, uint8_t c, uint8_t d); - ip& operator = (const ip &); - bool operator == (const ip &) const; + bool operator== (const ip &) const; explicit operator uint32_t (void);