deleted constructors from IPAddress

Wed, 27 Jan 2021 14:06:45 +0200

author
Teemu Piippo <teemu@hecknology.net>
date
Wed, 27 Jan 2021 14:06:45 +0200
changeset 184
afd63357a03d
parent 183
9b6a0daedfc0
child 185
e83ec58cc458

deleted constructors from IPAddress

sources/network/ipaddress.cpp file | annotate | diff | comparison | revisions
sources/network/ipaddress.h file | annotate | diff | comparison | revisions
sources/network/udpsocket.h file | annotate | diff | comparison | revisions
--- 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;
--- 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);
--- 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;
 };

mercurial