aboutsummaryrefslogtreecommitdiffstats
path: root/src/event/Loop.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-01-04 15:58:00 +0100
committerMax Kellermann <max@duempel.org>2014-01-04 16:00:45 +0100
commit0f9ef2506f316d6bb7e8e455ad222bc173eb5b48 (patch)
tree7cf562382cf33252bdac5c263f7fa9101aa0f528 /src/event/Loop.cxx
parent1f1195975f6a970d1a690ced463c184c0cf97e2d (diff)
downloadmpd-0f9ef2506f316d6bb7e8e455ad222bc173eb5b48.tar.gz
mpd-0f9ef2506f316d6bb7e8e455ad222bc173eb5b48.tar.xz
mpd-0f9ef2506f316d6bb7e8e455ad222bc173eb5b48.zip
event/Loop: remove unused method AddCall()
Diffstat (limited to '')
-rw-r--r--src/event/Loop.cxx19
1 files changed, 0 insertions, 19 deletions
diff --git a/src/event/Loop.cxx b/src/event/Loop.cxx
index 92492387b..e2f021016 100644
--- a/src/event/Loop.cxx
+++ b/src/event/Loop.cxx
@@ -194,16 +194,6 @@ EventLoop::Run()
#ifdef USE_INTERNAL_EVENTLOOP
void
-EventLoop::AddCall(std::function<void()> &&f)
-{
- mutex.lock();
- calls.push_back(f);
- mutex.unlock();
-
- wake_fd.Write();
-}
-
-void
EventLoop::AddDeferred(DeferredMonitor &d)
{
mutex.lock();
@@ -262,15 +252,6 @@ EventLoop::OnSocketReady(gcc_unused unsigned flags)
mutex.lock();
}
- while (!calls.empty() && !quit) {
- auto f = std::move(calls.front());
- calls.pop_front();
-
- mutex.unlock();
- f();
- mutex.lock();
- }
-
mutex.unlock();
return true;