diff --git a/src/gear3/expander.nim b/src/gear3/expander.nim index 6528c663..2d0e133d 100644 --- a/src/gear3/expander.nim +++ b/src/gear3/expander.nim @@ -32,7 +32,6 @@ type breaks: seq[SymId] # how to translate `break` continues: seq[SymId] # how to translate `continue` - # moduleSyms: HashSet[SymId] # thisModule: ModuleId # TODO: add a instID for each forStmt tmpId: int # per proc @@ -1287,12 +1286,8 @@ proc connectSingleExprToLoopVar(e: var EContext; c: var Cursor; res[destSym] = val inc c else: - # if destSym in e.moduleSyms: - # createAsgn(e, destSym, c, info) - # else: var typ = local.typ createDecl(e, destSym, typ, c, info, "var") - # e.moduleSyms.incl destSym proc getTmpId(e: var EContext): int = result = e.tmpId @@ -1619,8 +1614,6 @@ proc expand*(infile: string) = var dest = move e.dest var c = beginRead(dest) - echo c - if stmtKind(c) == StmtsS: inc c genStringType e, c.info