diff options
author | ringabout <43030857+ringabout@users.noreply.github.com> | 2023-06-02 22:03:32 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-02 16:03:32 +0200 |
commit | 1133f20fe2c834d14454c32d7d9fc2cd1fe8ffa2 (patch) | |
tree | 6eb03f314132d5022d6ebfdc7d4b706dfa8cfb5f /lib/system | |
parent | ead7e20926b1f5ea1b06679947d3d16fcc085e68 (diff) | |
download | Nim-1133f20fe2c834d14454c32d7d9fc2cd1fe8ffa2.tar.gz |
lift the `=dup` hook (#21903)
* fixes tests again * remove helper functions * fixes closures, owned refs * final cleanup
Diffstat (limited to 'lib/system')
-rw-r--r-- | lib/system/arc.nim | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/system/arc.nim b/lib/system/arc.nim index cc93eb9fc..2186806d6 100644 --- a/lib/system/arc.nim +++ b/lib/system/arc.nim @@ -200,10 +200,6 @@ proc nimDecRefIsLast(p: pointer): bool {.compilerRtl, inl.} = when traceCollector: cprintf("[DECREF] %p\n", cell) -proc nimDupRef(dest: ptr pointer, src: pointer) {.compilerRtl, inl.} = - dest[] = src - if src != nil: nimIncRef src - proc GC_unref*[T](x: ref T) = ## New runtime only supports this operation for 'ref T'. var y {.cursor.} = x |