Skip to content

refactor(shadcn): remove dead code surfaced by the test audit - #11252

Open
shadcn wants to merge 3 commits into
mainfrom
shadcn/remove-dead-code
Open

refactor(shadcn): remove dead code surfaced by the test audit#11252
shadcn wants to merge 3 commits into
mainfrom
shadcn/remove-dead-code

Conversation

@shadcn

@shadcn shadcn commented Jul 22, 2026

Copy link
Copy Markdown
Collaborator

Removes code the test audit (#11247) verified has no live callers:

  • resolveTree in registry/api.ts — superseded by resolveRegistryTree, not publicly exported; its migrated test goes with it.
  • applyPrefixesCss in transform-tw-prefix.ts — no production callers; this also resolves the Copilot-flagged tw:: snapshot on test(shadcn): consolidate test suite and cover untested modules #11247, which only that dead path produced.
  • commands/registry/build.ts, commands/registry/mcp.ts, preflights/preflight-registry.ts — never registered in the CLI (registry wires only add and validate; the live build/mcp commands are separate files).

Each deletion was gated on a grep proving zero references. Full suite, typecheck, and build pass; shadcn registry --help unchanged.

@vercel

vercel Bot commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
ui Ignored Ignored Preview Jul 22, 2026 6:00pm

Request Review

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