Skip to content

chore(cleanup): remove or wire 5 confirmed-dead exports #4012

Description

@JSONbored

Context

A dead-code sweep (grepping every symbol/basename against both src/ and test/, checking for CLI/script/dynamic-import references outside src/ too) found 5 files that are fully unit-tested but have zero production call site anywhere in the repo:

Also found: settings.privateTrustEnabled (a RepositorySettings field) is persisted and exposed via the maintainer API but read by zero conditional logic anywhere in src/ — a write-only field.

Requirements

For each of the 5 files: either (a) delete it and its dedicated test file if genuinely no longer wanted, or (b) if still desired (e.g. issue-rag-wire.ts for the planned miner-side feature), leave it but add a one-line comment noting it's intentionally pre-built and currently unreached, so a future dead-code sweep doesn't re-flag it as a mystery. For privateTrustEnabled: either wire it into real gate/behavior logic if it was meant to do something, or remove the field/column if it was superseded before ever being consumed.

Deliverables

  • A decision + PR per file (or one combined PR if all five get the same disposition).
  • Migration to drop privateTrustEnabled if removed, or a small follow-up PR wiring it in if it should do something.

Expected outcome

No unexplained, fully-tested-but-unreachable code left in the tree without at least a comment explaining why it exists that way — removes maintenance burden and false leads for future audits.

Metadata

Metadata

Assignees

Labels

maintainer-onlyOwner-only work — yields no Gittensor points.orbGittensory Orb related - maintainer self-hosting analytics.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions