Remove unused function from connection.{cpp,h}
authornerzhul <loic.blot@unix-experience.fr>
Fri, 14 Aug 2015 12:00:36 +0000 (14:00 +0200)
committerLoic Blot <loic.blot@unix-experience.fr>
Sat, 15 Aug 2015 06:48:20 +0000 (08:48 +0200)
src/network/connection.cpp
src/network/connection.h

index 93dcf4ca2ceceddd0341366130e084db5109f059..7794ce10fb2d48552a47329e99030583dbd8919d 100644 (file)
@@ -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 {
index f15c3e114995f15354ee25ee46d59095e480c28d..15ea7e20ff267cfd8237014f2f2ff230f9bdb204 100644 (file)
@@ -1018,7 +1018,6 @@ public:
        ~Connection();
 
        /* Interface */
-       ConnectionEvent getEvent();
        ConnectionEvent waitEvent(u32 timeout_ms);
        void putCommand(ConnectionCommand &c);