diff options
Diffstat (limited to 'Swiften/Controllers/EventController.cpp')
-rw-r--r-- | Swiften/Controllers/EventController.cpp | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/Swiften/Controllers/EventController.cpp b/Swiften/Controllers/EventController.cpp deleted file mode 100644 index a87f79a..0000000 --- a/Swiften/Controllers/EventController.cpp +++ /dev/null @@ -1,21 +0,0 @@ -#include "Swiften/Controllers/EventController.h" - -#include <boost/bind.hpp> -#include <algorithm> - -namespace Swift { - -void EventController::handleIncomingEvent(boost::shared_ptr<MessageEvent> event) { - if (event->isReadable()) { - events_.push_back(event); - event->onRead.connect(boost::bind(&EventController::handleEventRead, this, event)); - onEventQueueLengthChange(events_.size()); - } -} - -void EventController::handleEventRead(boost::shared_ptr<MessageEvent> event) { - events_.erase(std::remove(events_.begin(), events_.end(), event), events_.end()); - onEventQueueLengthChange(events_.size()); -} - -} |