From 44f13592d3161ac76f650a29dc62b22d66c8fd87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6nke=20Ludwig?= Date: Mon, 16 Mar 2020 11:52:33 +0100 Subject: [PATCH] Remove dead code. --- source/vibe/core/core.d | 14 -------------- source/vibe/core/sync.d | 3 --- 2 files changed, 17 deletions(-) diff --git a/source/vibe/core/core.d b/source/vibe/core/core.d index e23f61d..5307852 100644 --- a/source/vibe/core/core.d +++ b/source/vibe/core/core.d @@ -1507,20 +1507,6 @@ private void setupSignalHandlers() // per process setup shared static this() { - version(Windows){ - version(VibeLibeventDriver) enum need_wsa = true; - else version(VibeWin32Driver) enum need_wsa = true; - else enum need_wsa = false; - static if (need_wsa) { - logTrace("init winsock"); - // initialize WinSock2 - import core.sys.windows.winsock2; - WSADATA data; - WSAStartup(0x0202, &data); - - } - } - s_isMainThread = true; // COMPILER BUG: Must be some kind of module constructor order issue: diff --git a/source/vibe/core/sync.d b/source/vibe/core/sync.d index 6aef38b..f85d436 100644 --- a/source/vibe/core/sync.d +++ b/source/vibe/core/sync.d @@ -438,7 +438,6 @@ final class InterruptibleTaskMutex : Lockable { void unlock() nothrow { m_impl.unlock(); } } -version (VibeLibevDriver) {} else // timers are not implemented for libev, yet unittest { runMutexUnitTests!InterruptibleTaskMutex(); } @@ -475,7 +474,6 @@ final class RecursiveTaskMutex : core.sync.mutex.Mutex, Lockable { override void unlock() { m_impl.unlock(); } } -version (VibeLibevDriver) {} else // timers are not implemented for libev, yet unittest { runMutexUnitTests!RecursiveTaskMutex(); } @@ -507,7 +505,6 @@ final class InterruptibleRecursiveTaskMutex : Lockable { void unlock() { m_impl.unlock(); } } -version (VibeLibevDriver) {} else // timers are not implemented for libev, yet unittest { runMutexUnitTests!InterruptibleRecursiveTaskMutex(); }