mirror of
https://github.com/nim-lang/Nim.git
synced 2026-02-14 15:23:27 +00:00
Clean out sharedlists (#14857)
This commit is contained in:
@@ -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`.
|
||||
|
||||
@@ -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.}
|
||||
|
||||
Reference in New Issue
Block a user