Remove dead code.

This commit is contained in:
Sönke Ludwig 2020-03-16 11:52:33 +01:00
parent 968ac82c8d
commit 44f13592d3
2 changed files with 0 additions and 17 deletions

View file

@ -1507,20 +1507,6 @@ private void setupSignalHandlers()
// per process setup // per process setup
shared static this() 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; s_isMainThread = true;
// COMPILER BUG: Must be some kind of module constructor order issue: // COMPILER BUG: Must be some kind of module constructor order issue:

View file

@ -438,7 +438,6 @@ final class InterruptibleTaskMutex : Lockable {
void unlock() nothrow { m_impl.unlock(); } void unlock() nothrow { m_impl.unlock(); }
} }
version (VibeLibevDriver) {} else // timers are not implemented for libev, yet
unittest { unittest {
runMutexUnitTests!InterruptibleTaskMutex(); runMutexUnitTests!InterruptibleTaskMutex();
} }
@ -475,7 +474,6 @@ final class RecursiveTaskMutex : core.sync.mutex.Mutex, Lockable {
override void unlock() { m_impl.unlock(); } override void unlock() { m_impl.unlock(); }
} }
version (VibeLibevDriver) {} else // timers are not implemented for libev, yet
unittest { unittest {
runMutexUnitTests!RecursiveTaskMutex(); runMutexUnitTests!RecursiveTaskMutex();
} }
@ -507,7 +505,6 @@ final class InterruptibleRecursiveTaskMutex : Lockable {
void unlock() { m_impl.unlock(); } void unlock() { m_impl.unlock(); }
} }
version (VibeLibevDriver) {} else // timers are not implemented for libev, yet
unittest { unittest {
runMutexUnitTests!InterruptibleRecursiveTaskMutex(); runMutexUnitTests!InterruptibleRecursiveTaskMutex();
} }