Clean out sharedlists (#14857)

This commit is contained in:
Juan Carlos 2020-07-02 03:40:58 -03:00 • committed by GitHub
commit d590611fc5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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`. - Removed `asyncdispatch.newAsyncNativeSocket`, was deprecated since `0.18`.
- Remove `dom.releaseEvents` and `dom.captureEvents`, was deprecated. - Remove `dom.releaseEvents` and `dom.captureEvents`, was deprecated.
- Remove `sharedlists.initSharedList`, was deprecated and produces undefined behaviour.
## Compiler changes ## Compiler changes
- Specific warnings can now be turned into errors via `--warningAsError[X]:on|off`. - 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) clear(t)
deinitLock t.lock 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.} {.pop.}