event/Loop: remove unused method AddCall()

This commit is contained in:
Max Kellermann
2014-01-04 15:58:00 +01:00
parent 1f1195975f
commit 0f9ef2506f
2 changed files with 0 additions and 28 deletions

View File

@@ -193,16 +193,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)
{
@@ -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;