Skip to content

Correct comments that name removed code, and drop a timeline branch and picker export nothing calls - #6585

Merged
leaf-agent merged 1 commit into
mainfrom
cleanup/stale-names-and-dead-code
Nov 20, 2026
Merged

leaf-agent merged 1 commit into
mainfrom
cleanup/stale-names-and-dead-code

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

These comments named code that is gone, and two pieces of code had no caller. Nothing here changes behavior.

Comments that named removed code

Code with no caller

  • The Playwright timeline's zoomBy took a fit range that no caller passes: lf-trace's two zoom commands pass a factor, and the wheel passes a factor and an anchor. Its zoom getter had no reader.
  • createTargetPicker returned openTargetPicker, which nothing outside the module reads. Its own s command still runs it.

pnpm run check:framework and pnpm run test:runtime pass (1073), and ruff check is clean on the two dev files. No test is added, since nothing here changes behavior.

…nd picker export nothing calls

Comments:
- The render checks named `OPEN_ROOTS`, whose export is `openRoots`, and
  compared it with `UNMARKABLE_ITEMS`, which 90f9374 removed.
- `version.js` said repeated comparisons share a revision's document fetch;
  only preparing an activation reads that cache, and `loadBase` fetches
  directly.
- `thread-preview.js` said a run's earlier progress steps fold, which #6508
  removed; only a closed checkpoint's turns fold now.
- `dev/leaf_dev/website.py` and `site verify --wait` explained their waits by
  a container image rollout, which #6550 removed: each session object now
  starts the deployed image, so the waits cover the edge serving another
  release and a lost activation connection.

Dead code:
- The Playwright timeline's `zoomBy` took a `fit` range no caller passes
  (lf-trace's zoom commands and the wheel pass a factor and an anchor), and
  its `zoom` getter had no reader.
- `createTargetPicker` returned `openTargetPicker`, which nothing outside
  the module reads; its own `s` command still runs it.

No behavior changes.
@leaf-agent
leaf-agent merged commit 8e5b143 into main Nov 20, 2026
7 checks passed
@leaf-agent
leaf-agent deleted the cleanup/stale-names-and-dead-code branch November 20, 2026 07:04
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