Repository navigation
fix: remove unused runtime exports - #4595
Merged
Merged
Conversation
Delete obsolete send and agent label helpers, make internal shadow, quiet-word and icon helpers private, and drop the unused showAction re-export. No page behavior changes; the compiled kernel JavaScript is unchanged. Closes #4461
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.
Remove the runtime exports left behind when their callers moved:
submitLabelafter #4270 gave each field its own send label,agentLabelafter #4325 removed the named-agent notice, and the externalliftReachAPI after #4379 moved shadow measurement inside box motion. Keep the shadow helper private and delete the two unused label helpers, preserving those changes' behavior.The same audit on current main also finds
quietWord,ICONS, and theicons.jsre-export ofshowAction. Keep the first two private and remove the redundant re-export;showActionremains exported by its owning module for its real caller.Rebuilt the kernel: only its source hashes change; the compiled JavaScript is byte-for-byte unchanged.
Validation: the existing export audit failed before the change with all six names. After the change the audit and the shipped-page browser render gate both pass (2 tests). The browser build and all 695 runtime tests also pass.
Closes #4461 — automated triage