From: nerzhul Date: Fri, 14 Aug 2015 12:00:36 +0000 (+0200) Subject: Remove unused function from connection.{cpp,h} X-Git-Tag: 0.4.13~16 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=c4b5561b3fdf4c2cac401774e7c54856c1546855;p=oweals%2Fminetest.git Remove unused function from connection.{cpp,h} --- diff --git a/src/network/connection.cpp b/src/network/connection.cpp index 93dcf4ca2..7794ce10f 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 f15c3e114..15ea7e20f 100644 --- a/src/network/connection.h +++ b/src/network/connection.h @@ -1018,7 +1018,6 @@ public: ~Connection(); /* Interface */ - ConnectionEvent getEvent(); ConnectionEvent waitEvent(u32 timeout_ms); void putCommand(ConnectionCommand &c);