Clean out sharedlists (#14857)

This commit is contained in:
Juan Carlos
2020-07-02 03:40:58 -03:00
committed by GitHub
parent cbcaf2bbc4
commit d590611fc5
2 changed files with 3 additions and 6 deletions

View File

@@ -191,6 +191,9 @@ proc mydiv(a, b): int {.raises: [].} =
- Removed `asyncdispatch.newAsyncNativeSocket`, was deprecated since `0.18`.
- Remove `dom.releaseEvents` and `dom.captureEvents`, was deprecated.
- Remove `sharedlists.initSharedList`, was deprecated and produces undefined behaviour.
## Compiler changes
- Specific warnings can now be turned into errors via `--warningAsError[X]:on|off`.

View File

@@ -94,10 +94,4 @@ proc deinitSharedList*[A](t: var SharedList[A]) =
clear(t)
deinitLock t.lock
proc initSharedList*[A](): SharedList[A] {.deprecated: "use 'init' instead".} =
## This is not posix compliant, may introduce undefined behavior.
initLock result.lock
result.head = nil
result.tail = nil
{.pop.}