Commit 6eff13f
authored
chore: remove dead
`parse_comptime_decl` was never called -- the `comptime` top-level
declaration is handled inline in `parse_top_level` (the `Some(TokenKind::Comptime)`
arm reads `comptime`, optionally branches to `parse_orchestrate_decl`,
and otherwise builds a `ComptimeDecl` directly from the block). The
separate helper was a leftover from an earlier factoring.
Identified during the #22 dead-code review (PR4 / #26) but deferred at
the time to avoid merge-conflict risk with the depth-guard PR #21 also
modifying parser.rs. With #21 merged this is a one-method delete.
Tests: `cargo test -p my-lang --lib parser::` -- 32/32 pass (same count
as before; the method had no associated tests).
Clippy: the lone `parse_comptime_decl is never used` warning at
parser.rs:825 is now gone.parse_comptime_decl method from parser (#28)1 parent defa5df commit 6eff13f
1 file changed
Lines changed: 0 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
818 | 818 | | |
819 | 819 | | |
820 | 820 | | |
821 | | - | |
822 | | - | |
823 | | - | |
824 | | - | |
825 | | - | |
826 | | - | |
827 | | - | |
828 | | - | |
829 | | - | |
830 | | - | |
831 | | - | |
832 | | - | |
833 | 821 | | |
834 | 822 | | |
835 | 823 | | |
| |||
0 commit comments