From bcc119487a181c27667c0901c1f7bd539b0f64ca Mon Sep 17 00:00:00 2001 From: Charles Dang Date: Mon, 5 Aug 2019 19:25:41 +1100 Subject: [PATCH] Wesnothd Connection: removed now-unused poll() --- src/wesnothd_connection.cpp | 17 ----------------- src/wesnothd_connection.hpp | 3 --- 2 files changed, 20 deletions(-) diff --git a/src/wesnothd_connection.cpp b/src/wesnothd_connection.cpp index 6229aea89ef..a8b1d09fb44 100644 --- a/src/wesnothd_connection.cpp +++ b/src/wesnothd_connection.cpp @@ -389,23 +389,6 @@ void wesnothd_connection::recv() std::bind(&wesnothd_connection::handle_read, this, _1, _2)); } -// main thread, during handshake -std::size_t wesnothd_connection::poll() -{ - MPTEST_LOG; - - try { - return io_service_.poll(); - } catch(const boost::system::system_error& err) { - if(err.code() == boost::asio::error::operation_aborted || err.code() == boost::asio::error::eof) { - return 1; - } - - WRN_NW << __func__ << " Rethrowing: " << err.code() << "\n"; - throw error(err.code()); - } -} - // main thread bool wesnothd_connection::receive_data(config& result) { diff --git a/src/wesnothd_connection.hpp b/src/wesnothd_connection.hpp index dcdddcc2b60..9faee90bed3 100644 --- a/src/wesnothd_connection.hpp +++ b/src/wesnothd_connection.hpp @@ -84,9 +84,6 @@ public: void wait_for_handshake(); - /** Handles all pending asynchornous events and returns. */ - std::size_t poll(); - void cancel(); // Destroys this object.