Skip to content

Commit

Permalink
removed unused statement kinds (#435)
Browse files Browse the repository at this point in the history
  • Loading branch information
Araq authored Jan 31, 2025
1 parent 2477c30 commit ce3b412
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/hexer/desugar.nim
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ proc tr(c: var Context; dest: var TokenBuf; n: var Cursor) =
trProc c, dest, n
of IterS, TemplateS, TypeS, EmitS, BreakS, ContinueS,
ForS, CmdS, IncludeS, ImportS, FromImportS, ImportExceptS,
ExportS, CommentS, ClonerS, TracerS, DisarmerS, MoverS, DtorS,
ExportS, CommentS,
PragmasLineS:
takeTree dest, n
of ScopeS:
Expand Down
2 changes: 1 addition & 1 deletion src/hexer/nifcgen.nim
Original file line number Diff line number Diff line change
Expand Up @@ -1175,7 +1175,7 @@ proc traverseStmt(e: var EContext; c: var Cursor; mode = TraverseAll) =
skip c
of TypeS:
traverseTypeDecl e, c
of ContinueS, WhenS, ClonerS, TracerS, DisarmerS, MoverS, DtorS:
of ContinueS, WhenS:
error e, "unreachable: ", c
of PragmasLineS:
skip c
Expand Down
2 changes: 1 addition & 1 deletion src/hexer/xelim.nim
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ proc trStmt(c: var Context; dest: var TokenBuf; n: var Cursor) =
trBlock c, dest, n, tar
of IterS, TemplateS, TypeS, EmitS, BreakS, ContinueS,
ForS, CmdS, IncludeS, ImportS, FromImportS, ImportExceptS,
ExportS, CommentS, ClonerS, TracerS, DisarmerS, MoverS, DtorS,
ExportS, CommentS,
PragmasLineS:
takeTree dest, n
of ScopeS:
Expand Down
5 changes: 0 additions & 5 deletions src/nimony/nimony_model.nim
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,6 @@ type
ImportExceptS = "importexcept"
ExportS = "export"
CommentS = "comment"
ClonerS = "cloner"
TracerS = "tracer"
DisarmerS = "disarmer"
MoverS = "mover"
DtorS = "dtor"
PragmasLineS = "pragmas"
InclSetS = "incl"
ExclSetS = "excl"
Expand Down
2 changes: 0 additions & 2 deletions src/nimony/sem.nim
Original file line number Diff line number Diff line change
Expand Up @@ -5057,8 +5057,6 @@ proc semExpr(c: var SemContext; it: var Item; flags: set[SemFlag] = {}) =
of ExportS, CommentS:
# XXX ignored for now
skip it.n
of ClonerS, TracerS, DisarmerS, MoverS, DtorS:
takeTree c, it.n
of EmitS:
raiseAssert "unreachable"
of PragmasLineS:
Expand Down

0 comments on commit ce3b412

Please sign in to comment.