From cbeb0395f92d64ffdd73e1896cbfa25588f868dd Mon Sep 17 00:00:00 2001 From: Eugen Wissner Date: Wed, 30 Nov 2016 16:21:20 +0100 Subject: [PATCH] Remove @safe from potentially unsafe code --- README.md | 14 +++----------- source/tanya/async/watcher.d | 2 +- source/tanya/memory/mmappool.d | 2 +- 3 files changed, 5 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index 3ae8bb2..22686ef 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,4 @@ -# This repository is abandoned +# tanya -Please note that this repository is now abandoned. I'm currently working on merging the code into -[dlib](https://github.com/gecko0307/dlib). - -This repository will be kept alive for some time for reference purpose and as a sandbox for new features. - -# D event loop - -tanya's mission was to provide a GC-free, general purpose library for D programming language for developing servers. -Since dlib follows similar rules I decided that it would be better to extend and improve an existing library. -Dlib has some features like containers I can build on without developing everything by myself. +tanya's mission is to provide a GC-free, general purpose library for D +programming language for developing servers. diff --git a/source/tanya/async/watcher.d b/source/tanya/async/watcher.d index 08fe6df..260c6a3 100644 --- a/source/tanya/async/watcher.d +++ b/source/tanya/async/watcher.d @@ -174,7 +174,7 @@ class IOWatcher : ConnectionWatcher * * Returns: $(D_KEYWORD this). */ - IOWatcher opCall(StreamTransport transport, Protocol protocol) pure nothrow @safe @nogc + IOWatcher opCall(StreamTransport transport, Protocol protocol) pure nothrow @nogc in { assert(transport !is null); diff --git a/source/tanya/memory/mmappool.d b/source/tanya/memory/mmappool.d index 2917afe..ed761ad 100644 --- a/source/tanya/memory/mmappool.d +++ b/source/tanya/memory/mmappool.d @@ -268,7 +268,7 @@ class MmapPool : Allocator } /// - @nogc @safe nothrow unittest + @nogc nothrow unittest { void[] p; MmapPool.instance.reallocate(p, 10 * int.sizeof);