From 4aa6420662b0ae53e2595077f67975690aa383d6 Mon Sep 17 00:00:00 2001 From: Hiroki Noda Date: Thu, 26 Sep 2019 20:33:05 +0900 Subject: [PATCH] Remove unused function `safeYield` --- source/eventcore/drivers/threadedfile.d | 5 ----- 1 file changed, 5 deletions(-) diff --git a/source/eventcore/drivers/threadedfile.d b/source/eventcore/drivers/threadedfile.d index d92502e..45d64f0 100644 --- a/source/eventcore/drivers/threadedfile.d +++ b/source/eventcore/drivers/threadedfile.d @@ -405,11 +405,6 @@ log("ready event"); private auto safeAtomicLoad(T)(ref shared(T) v) @trusted { return atomicLoad(v); } private auto safeAtomicStore(T)(ref shared(T) v, T a) @trusted { return atomicStore(v, a); } private auto safeCAS(T, U, V)(ref shared(T) v, U a, V b) @trusted { return cas(&v, a, b); } -private void safeYield() @trusted nothrow { - import core.thread : Thread; - import core.time : seconds; - Thread.sleep(0.seconds); -} private void log(ARGS...)(string fmt, ARGS args) @trusted nothrow {