Repository navigation
Correct comments that name removed code, and drop a timeline branch and picker export nothing calls - #6585
Merged
Conversation
…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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
These comments named code that is gone, and two pieces of code had no caller. Nothing here changes behavior.
Comments that named removed code
src/leaf/render-checks/(framing.js,open-roots.js,words.js,widgets.js) namedOPEN_ROOTS, but the export isopenRoots. Two of them also compared it withUNMARKABLE_ITEMS, which 90f9374 removed.browser/runtime/version.jssaid repeated comparisons of a revision share its document fetch. In fact onlyprepareActivationreads that cache, andloadBasecallsauthoredDocumentdirectly.browser/runtime/annotation-overlay/thread-preview.jssaid a run's earlier progress steps fold. End a progress step with its turn, and drop the progress disclosure #6508 removed that fold; only a closed checkpoint's turns fold now.dev/leaf_dev/website.pyandleaf-dev site verify --waitexplained their waits by a container image rollout, which Start each leaf.page container from its session object, under Durable Object scheduling #6550 removed. Now each session object starts the deployed image, so the waits cover the edge still serving another release and a lost activation connection. This matchesverify.py's header, which Start each leaf.page container from its session object, under Durable Object scheduling #6550 already rewrote.Code with no caller
zoomBytook afitrange that no caller passes: lf-trace's two zoom commands pass a factor, and the wheel passes a factor and an anchor. Itszoomgetter had no reader.createTargetPickerreturnedopenTargetPicker, which nothing outside the module reads. Its ownscommand still runs it.pnpm run check:frameworkandpnpm run test:runtimepass (1073), andruff checkis clean on the two dev files. No test is added, since nothing here changes behavior.