From 0f9ef2506f316d6bb7e8e455ad222bc173eb5b48 Mon Sep 17 00:00:00 2001
From: Max Kellermann <max@duempel.org>
Date: Sat, 4 Jan 2014 15:58:00 +0100
Subject: event/Loop: remove unused method AddCall()

---
 src/event/Loop.cxx | 19 -------------------
 1 file changed, 19 deletions(-)

(limited to 'src/event/Loop.cxx')

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
@@ -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;
-- 
cgit v1.2.3