diff --git a/sock.cpp b/sock.cpp index 7bc3d16..07b01a3 100644 --- a/sock.cpp +++ b/sock.cpp @@ -20,7 +20,6 @@ Sock::~Sock() {} parameters. The address version (IPv4 or IPv6) is determined based on the given address. */ Sock::Sock(char protocol, const char* address, int port) { - /* Error checking */ this->ip_ver = check_ip_ver(address); if (ip_ver != 4 && ip_ver != 6) { @@ -33,7 +32,6 @@ Sock::Sock(char protocol, const char* address, int port) { throw std::invalid_argument("Invalid protocol"); } - this->ip_ver = ip_ver; this->protocol = protocol; this->port = port; this->address = std::string(address);