From 484548c784f69cadc1f6480a24e99183a0e6a930 Mon Sep 17 00:00:00 2001 From: Andreas Rumpf Date: Wed, 1 Apr 2020 14:34:24 +0200 Subject: revert stdlib changes which are not required anymore --- lib/pure/ioselects/ioselectors_select.nim | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'lib/pure/ioselects/ioselectors_select.nim') diff --git a/lib/pure/ioselects/ioselectors_select.nim b/lib/pure/ioselects/ioselectors_select.nim index 6a742df99..02a853b42 100644 --- a/lib/pure/ioselects/ioselectors_select.nim +++ b/lib/pure/ioselects/ioselectors_select.nim @@ -410,17 +410,11 @@ else: body proc getData*[T](s: Selector[T], fd: SocketHandle|int): var T = - # The compiler needs this to prove that all code paths return a value - result = (cast[ptr T](0'u))[] - s.withSelectLock(): let fdi = int(fd) for i in 0..