From 02e389522e749743c9f4e60c24c52abbfe539e04 Mon Sep 17 00:00:00 2001 From: ringabout <43030857+ringabout@users.noreply.github.com> Date: Tue, 13 Jan 2026 15:36:23 +0800 Subject: [PATCH] clean ups --- compiler/ast.nim | 10 ---------- compiler/astdef.nim | 1 - 2 files changed, 11 deletions(-) diff --git a/compiler/ast.nim b/compiler/ast.nim index efa91c40f0..89f24c63ca 100644 --- a/compiler/ast.nim +++ b/compiler/ast.nim @@ -116,16 +116,6 @@ proc `transformedBody=`*(s: PSym, val: PNode) {.inline.} = if s.state == Partial: loadSym(s) s.transformedBodyImpl = val -proc closureBody*(s: PSym): PNode {.inline.} = - if s.state == Partial: loadSym(s) - result = s.closureBodyImpl - -proc `closureBody=`*(s: PSym, val: PNode) {.inline.} = - #assert s.state != Sealed - # Make an exception here for this misfeature... - if s.state == Partial: loadSym(s) - s.closureBodyImpl = val - proc guard*(s: PSym): PSym {.inline.} = if s.state == Partial: loadSym(s) result = s.guardImpl diff --git a/compiler/astdef.nim b/compiler/astdef.nim index 5cf362c8b6..b9a8aab3e1 100644 --- a/compiler/astdef.nim +++ b/compiler/astdef.nim @@ -705,7 +705,6 @@ type #procInstCache*: seq[PInstantiation] gcUnsafetyReasonImpl*: PSym # for better error messages regarding gcsafe transformedBodyImpl*: PNode # cached body after transf pass - closureBodyImpl*: PNode # cached body after closure conversion of skLet, skVar, skField, skForVar: guardImpl*: PSym bitsizeImpl*: int