diff --git a/src/network/connection.cpp b/src/network/connection.cpp index 93dcf4ca2ceceddd0341366130e084db5109f059..7794ce10fb2d48552a47329e99030583dbd8919d 100644 --- a/src/network/connection.cpp +++ b/src/network/connection.cpp @@ -2817,16 +2817,6 @@ bool Connection::deletePeer(u16 peer_id, bool timeout) /* Interface */ -ConnectionEvent Connection::getEvent() -{ - if (m_event_queue.empty()) { - ConnectionEvent e; - e.type = CONNEVENT_NONE; - return e; - } - return m_event_queue.pop_frontNoEx(); -} - ConnectionEvent Connection::waitEvent(u32 timeout_ms) { try { diff --git a/src/network/connection.h b/src/network/connection.h index f15c3e114995f15354ee25ee46d59095e480c28d..15ea7e20ff267cfd8237014f2f2ff230f9bdb204 100644 --- a/src/network/connection.h +++ b/src/network/connection.h @@ -1018,7 +1018,6 @@ class Connection ~Connection(); /* Interface */ - ConnectionEvent getEvent(); ConnectionEvent waitEvent(u32 timeout_ms); void putCommand(ConnectionCommand &c);