From 557d4ba922dd89cbde2ca85e686ca408b9fdaa73 Mon Sep 17 00:00:00 2001 From: Attila Molnar Date: Wed, 5 Feb 2014 18:05:07 +0100 Subject: socketengine_kqueue Remove dead code --- src/socketengines/socketengine_kqueue.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/socketengines') diff --git a/src/socketengines/socketengine_kqueue.cpp b/src/socketengines/socketengine_kqueue.cpp index 99d4236e9..07ea19d9d 100644 --- a/src/socketengines/socketengine_kqueue.cpp +++ b/src/socketengines/socketengine_kqueue.cpp @@ -243,12 +243,8 @@ int KQueueEngine::DispatchEvents() const int bits_to_clr = FD_WANT_SINGLE_WRITE | FD_WANT_FAST_WRITE | FD_WRITE_WILL_BLOCK; SetEventMask(eh, eh->GetEventMask() & ~bits_to_clr); eh->HandleEvent(EVENT_WRITE); - - if (eh != GetRef(fd)) - // whoops, deleted out from under us - continue; } - if (filter == EVFILT_READ) + else if (filter == EVFILT_READ) { ReadEvents++; SetEventMask(eh, eh->GetEventMask() & ~FD_READ_WILL_BLOCK); -- cgit v1.2.3