From fd4ad04aeb857f875378b907f44da36187e1b5aa Mon Sep 17 00:00:00 2001 From: Aadhavan Srinivasan Date: Mon, 18 Mar 2024 16:02:57 -0400 Subject: [PATCH] Removed unnecessary comment --- sock.cpp | 2 -- 1 file changed, 2 deletions(-) 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);