Commit 1616d88e authored by Joseph Noir's avatar Joseph Noir

Remove unused function

parent 04caff86
...@@ -55,10 +55,6 @@ void close(socket x); ...@@ -55,10 +55,6 @@ void close(socket x);
/// @relates socket /// @relates socket
std::errc last_socket_error(); std::errc last_socket_error();
/// Returns the string representation of a given socket error code.
/// @relates socket
std::string socket_error_as_string(std::errc err);
/// Returns the last socket error as human-readable string. /// Returns the last socket error as human-readable string.
/// @relates socket /// @relates socket
std::string last_socket_error_as_string(); std::string last_socket_error_as_string();
......
...@@ -150,10 +150,6 @@ std::errc last_socket_error() { ...@@ -150,10 +150,6 @@ std::errc last_socket_error() {
return static_cast<std::errc>(errno); return static_cast<std::errc>(errno);
} }
std::string socket_error_as_string(std::errc err) {
return strerror(static_cast<int>(err));
}
std::string last_socket_error_as_string() { std::string last_socket_error_as_string() {
return strerror(errno); return strerror(errno);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment