Skip to content

Remove dead code - #710

Open
ecomodeller wants to merge 1 commit into
mainfrom
remove-dead-code
Open

ecomodeller wants to merge 1 commit into
mainfrom
remove-dead-code

Conversation

@ecomodeller

Copy link
Copy Markdown
Member

Unreferenced functions and commented-out blocks, found with vulture and verified by hand against src, tests, docs and notebooks.

  • utils — a 35-line commented-out get_item_name_and_idx, and is_iterable_not_str, which has no callers.
  • TimeSeries._is_modelresult — no callers.
  • settings_describe_option, reachable only from a commented-out alias inside a # temporary disabled block that has outlived the temporary; plus is_callable and is_nonnegative, the two members of the validator family that nothing registers (is_positive, is_dict and the rest stay).
  • ComparerCollection._unit_text — a commented-out consistency check.
  • Comparer — commented-out gtype asserts, and start/end properties renamed to start_time/end_time long ago.
  • SkillArrayPlotter — a commented-out map() behind a "hide this for now until we are certain about the API".

PlotlyTimeSeriesPlotter is unreferenced too, but stays: #701 builds on it.

Commented-out code is a claim that someone might want it back. Git history already keeps that promise.

🤖 Generated with Claude Code

Nothing references any of this, and commented-out code is a claim that
someone might want it back -- git history already keeps that promise.

- utils: a 35-line commented-out get_item_name_and_idx, and
  is_iterable_not_str, which has no callers
- TimeSeries._is_modelresult: no callers
- settings: _describe_option, reachable only from a commented-out alias in
  a "temporary disabled" block that has outlived the temporary; is_callable
  and is_nonnegative, the two validators in the family nothing registers
- ComparerCollection._unit_text: a commented-out consistency check
- Comparer: commented-out gtype asserts, and start/end properties renamed
  to start_time/end_time long ago
- SkillArrayPlotter: a commented-out map() behind a "hide this for now"

PlotlyTimeSeriesPlotter is also unreferenced but stays -- #701 builds on it.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant