chore(core): dead-code audit — remove zero-consumer modules#138
Merged
Conversation
…les, and orphaned dep
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.
Repo-wide dead-code audit: everything removed here was verified to have zero consumers at the symbol level across core, kit, cli, tools, and all example apps (barrel re-exports and own tests excluded).
shared/color/module (~1,900 lines) — ported for ColorArea/ColorSlider primitives that were never built*.story.vuefiles (~3,200 lines) — no story runner exists in the repo;story/_*.vuetest fixtures are untouchedconstants.tsexport registry (components/originals/utilities) — no consumer in tools, docs, or testsselector.ts,version.ts,getEventDetail,mainThreadify,popoverUtils,convertToPx(+ tests)useKbd,useGraceArea,useSelectionBehavior,useFormControl,isValidVNodeElement,withDefault,useScrollTo,Arrow.vue,countryList(+ tests)vue-component-type-helpersfrom runtime deps — sole importer waswithDefault, and type-only at thatuseId: drop the Vue <3.5 fallback branch (all workspaces pin 3.5+); fix stale docblocks indragGesture.ts/scan-dts.tsthat referenced removed or never-built modulesDeliberately kept despite zero internal callers:
useStateMachine,useLocale,useDateFormatter— each has a dedicated docs page and is intentional public API (i18n is documented as partially built). Removing those is a product call for a separate PR.Note:
withDefault,useScrollTo, and theconstants.tsregistry were public exports, so this is technically API-breaking — flagged in the changeset per AGENTS.md, kept atpatchper pre-1.0 policy.Net: −8,219 lines, −1 dep. Core + kit typecheck/test/build pass, cli tests pass, kit-demo builds cleanly.