summary refs log tree commit diff stats
path: root/lib/system/channels.nim
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2019-02-22 19:42:11 +0100
committerAndreas Rumpf <rumpf_a@web.de>2019-02-22 19:42:11 +0100
commit721bf7188bfff3a3ae1db44bece57cca3dfe8461 (patch)
tree5f877dc7384477a252172b7558b73e14ea0028c4 /lib/system/channels.nim
parent15c208cd29313c0888900644f0d516541d3832fc (diff)
downloadNim-721bf7188bfff3a3ae1db44bece57cca3dfe8461.tar.gz
code cleanup: there is no tyOptRef
Diffstat (limited to 'lib/system/channels.nim')
-rw-r--r--lib/system/channels.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/system/channels.nim b/lib/system/channels.nim
index 057ea2843..e0eb9ae13 100644
--- a/lib/system/channels.nim
+++ b/lib/system/channels.nim
@@ -147,7 +147,7 @@ proc storeAux(dest, src: pointer, mt: PNimType, t: PRawChannel,
     for i in 0..(mt.size div mt.base.size)-1:
       storeAux(cast[pointer](d +% i*% mt.base.size),
                cast[pointer](s +% i*% mt.base.size), mt.base, t, mode)
-  of tyRef, tyOptAsRef:
+  of tyRef:
     var s = cast[PPointer](src)[]
     var x = cast[PPointer](dest)
     if s == nil: