Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
ringabout committed Jan 10, 2025
1 parent bc14e2d commit dd52a90
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/gear3/expander.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit dd52a90

Please sign in to comment.