summary refs log tree commit diff stats
path: root/compiler/ccgexprs.nim
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2019-11-02 00:39:04 +0100
committerAndreas Rumpf <rumpf_a@web.de>2019-11-02 00:39:04 +0100
commit44a27ccfe1cd56f2e77979eba4814d94eec47b41 (patch)
treea145b167692c3572b4cf19bb2b50e2d8ec9472f7 /compiler/ccgexprs.nim
parent7a4d066102c3fdacaebb093699024693033742b1 (diff)
downloadNim-44a27ccfe1cd56f2e77979eba4814d94eec47b41.tar.gz
--gc:destructors: simple closures work
Diffstat (limited to 'compiler/ccgexprs.nim')
-rw-r--r--compiler/ccgexprs.nim2
1 files changed, 0 insertions, 2 deletions
diff --git a/compiler/ccgexprs.nim b/compiler/ccgexprs.nim
index f6cf799bd..1d9d0aca6 100644
--- a/compiler/ccgexprs.nim
+++ b/compiler/ccgexprs.nim
@@ -1193,8 +1193,6 @@ proc genDefault(p: BProc; n: PNode; d: var TLoc) =
   if d.k == locNone: getTemp(p, n.typ, d, needsInit=true)
   else: resetLoc(p, d)
 
-proc trivialDestructor(s: PSym): bool {.inline.} = s.ast[bodyPos].len == 0
-
 proc rawGenNew(p: BProc, a: TLoc, sizeExpr: Rope) =
   var sizeExpr = sizeExpr
   let typ = a.t