Clean out sharedlists (#14857)
This commit is contained in:
parent
cbcaf2bbc4
commit
d590611fc5
2 changed files with 3 additions and 6 deletions
|
|
@ -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`.
|
||||||
|
|
|
||||||
|
|
@ -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.}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue