From fd93ab82f567438ee9a97e5f1643f8eedd2d9f70 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6nke=20Ludwig?= Date: Thu, 22 Jun 2017 09:38:56 +0200 Subject: [PATCH] Remove deprecation attribute for the system overload of setTimer. The approach for now is to keep overloads that receive system delegates and are also marked system in turn. This breaks safety promises in some places within the library, but is an acceptable first step that keeps other possible directions open. --- source/vibe/core/core.d | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/source/vibe/core/core.d b/source/vibe/core/core.d index 7318baf..aa862a2 100644 --- a/source/vibe/core/core.d +++ b/source/vibe/core/core.d @@ -764,9 +764,8 @@ unittest { } /// Compatibility overload - use a `@safe nothrow` callback instead. -deprecated("Use an @safe nothrow callback as argument to setTimer.") Timer setTimer(Duration timeout, void delegate() callback, bool periodic = false) -@safe nothrow { +@system nothrow { return setTimer(timeout, () @trusted nothrow { try callback(); catch (Exception e) {