# HG changeset patch # User Teemu Piippo # Date 1611749205 -7200 # Node ID afd63357a03d1fd15c500026084f3db203998eff # Parent 9b6a0daedfc02f10bcd9440b434b87e34f322957 deleted constructors from IPAddress diff -r 9b6a0daedfc0 -r afd63357a03d sources/network/ipaddress.cpp --- a/sources/network/ipaddress.cpp Wed Jan 27 14:05:39 2021 +0200 +++ b/sources/network/ipaddress.cpp Wed Jan 27 14:06:45 2021 +0200 @@ -48,24 +48,6 @@ // ----------------------------------------------------------------------------- // -IPAddress::IPAddress() : - host (0), - port (0) {} - -// ----------------------------------------------------------------------------- -// -IPAddress::IPAddress (unsigned long host, unsigned short port) : - host (host), - port (port) {} - -// ----------------------------------------------------------------------------- -// -IPAddress::IPAddress (const IPAddress& other) : - host (other.host), - port (other.port) {} - -// ----------------------------------------------------------------------------- -// std::string IPAddress::to_string (WithPort withport) const { std::string val; diff -r 9b6a0daedfc0 -r afd63357a03d sources/network/ipaddress.h --- a/sources/network/ipaddress.h Wed Jan 27 14:05:39 2021 +0200 +++ b/sources/network/ipaddress.h Wed Jan 27 14:06:45 2021 +0200 @@ -66,10 +66,6 @@ unsigned long host; unsigned short port; - IPAddress(); - IPAddress (unsigned long host, unsigned short port); - IPAddress (const IPAddress& other); - bool compare (const IPAddress& other) const; unsigned char octet (int n) const; void set_octet (int n, unsigned char oct); diff -r 9b6a0daedfc0 -r afd63357a03d sources/network/udpsocket.h --- a/sources/network/udpsocket.h Wed Jan 27 14:05:39 2021 +0200 +++ b/sources/network/udpsocket.h Wed Jan 27 14:06:45 2021 +0200 @@ -60,7 +60,6 @@ private: static char HuffmanBuffer[131072]; - IPAddress m_addr; std::string m_error; int m_socket; };