From 175fb2670a2a24220afb3eea99b7b65b0aa89c76 Mon Sep 17 00:00:00 2001 From: Vasil Dimov Date: Thu, 29 Apr 2021 17:39:02 +0200 Subject: net: remove now unused Sock::Release() --- src/test/sock_tests.cpp | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'src/test/sock_tests.cpp') diff --git a/src/test/sock_tests.cpp b/src/test/sock_tests.cpp index 9e98f4f0b1..4a5b25c61b 100644 --- a/src/test/sock_tests.cpp +++ b/src/test/sock_tests.cpp @@ -69,16 +69,6 @@ BOOST_AUTO_TEST_CASE(move_assignment) BOOST_CHECK(SocketIsClosed(s)); } -BOOST_AUTO_TEST_CASE(release) -{ - SOCKET s = CreateSocket(); - Sock* sock = new Sock(s); - BOOST_CHECK_EQUAL(sock->Release(), s); - delete sock; - BOOST_CHECK(!SocketIsClosed(s)); - BOOST_REQUIRE(CloseSocket(s)); -} - BOOST_AUTO_TEST_CASE(reset) { const SOCKET s = CreateSocket(); -- cgit v1.2.3