Skip to content

Sweep the 128 unused exports #7

Description

@cgreening

128 exported names in src/ are used nowhere outside their own file.

Most are types exported for documentation, which is normal and fine in
TypeScript. But the list is worth a pass with a tool rather than by eye:

npx knip

What to look for, in priority order:

  1. exported constants nobody imports — sometimes a sign a test hardcodes
    the number instead (I checked the shield/energy ones specifically and they
    were fine, so this is a real question rather than a known problem)
  2. genuinely dead functions left behind by the decomposition
  3. types that could be local

Not a cleanup for its own sake: anything removed must be checked against
test/, train/ and tools/ as well as src/, since several exports exist
precisely so a harness can reach them.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions