Skip to content

parser: clean up dead/unused imports and code #24

Description

@Prestgg1

Goal

Clean up the parser crate by removing dead code, unused imports, and commented-out code.

Current Issues

cargo check -p parser reports 41 warnings, mostly unused imports and dead code.

Key areas to clean up:

  • Unused imports across multiple files (assign.rs, ast.rs, binary_op.rs, builtin.rs, decl.rs, function.rs, identifier.rs, literal_parse.rs, loop.rs, types.rs, errors.rs, expressions.rs, shared_ast.rs)
  • Unreachable statement in expressions.rs:233 (code after panic!)
  • Unused variables (span, return_type, other)
  • Unused type alias and function in test modules
  • Commented-out test functions in tests/condition.rs
  • Large commented-out code blocks (e.g. function definition parsing in expressions.rs)
  • Function parse_function_def imported but unused

Note: This should NOT remove any actively used functionality - only dead code that serves no purpose.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions