Wesnothd Connection: removed now-unused poll()

This commit is contained in:
Charles Dang 2019-08-05 19:25:41 +11:00
parent 65937511bf
commit bcc119487a
2 changed files with 0 additions and 20 deletions

View file

@ -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)
{

View file

@ -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.