Delete the eight functions nobody called
Measured, not guessed: every top-level def in every tracked .py file was counted against every other tracked file, including markdown, scripts, Go and TypeScript. Eight names had zero references anywhere: cartridges_holding_atom and clear_mounts (memory.py reads each cartridge's own sources.json, and set_mounts already clears by replacing the set), gradient_checkpointing_enabled, group_hits_by_source, ingested_paths, is_finite_number, parse_runtime_json (the runtime answers in prose now, and the JSON path was never wired back), write_sources_json. Typer commands and pytest cases were excluded from the count because a framework calls them by name. The same scan now returns zero. 263 tests pass; repo-wide mypy is still 24 errors in 6 files, unchanged.
This commit is contained in:
1 parent
330e801e92
commit
56b94cd58e
7 files changed
-59
No files matched your search
@@ -236,11 +236,6 @@ def ledger_outcomes() -> tuple[set[str], set[str]]:
|
||||
return ingested, failed
|
||||
|
||||
|
||||
def ingested_paths() -> set[str]:
|
||||
"""Every file a shard ledger recorded as ingested, excluding the files it recorded as failed."""
|
||||
return ledger_outcomes()[0]
|
||||
|
||||
|
||||
def retry_failed() -> int:
|
||||
"""Drop failed ledger entries so those files are attempted again, archiving what was dropped."""
|
||||
archive = RUNS / "failures.jsonl"
|
||||
|
||||
Reference in new issue
Block a user