]> git.tdb.fi Git - libs/net.git/blobdiff - source/streamsocket.cpp
Remove the now-obsolete check_state method
[libs/net.git] / source / streamsocket.cpp
index cd810d5253e14e2990d204c4af12096f5be7278b..59590846f16d0661917b4134b4b6aaa9ef919abb 100644 (file)
@@ -27,7 +27,6 @@ StreamSocket::StreamSocket(Family af, int proto):
 
 int StreamSocket::poll_connect(const Time::TimeDelta &timeout)
 {
-       check_state(false);
        if(!connecting)
                throw bad_socket_state("not connecting");
 
@@ -71,8 +70,6 @@ int StreamSocket::poll_connect(const Time::TimeDelta &timeout)
 
 int StreamSocket::connect(const SockAddr &addr)
 {
-       check_state(false);
-
        if(connected)
                throw bad_socket_state("already connected");