Skip to content
This repository was archived by the owner on May 13, 2026. It is now read-only.

refactor(discovery/utils): drop 2 dead exports + unexport 2 internal types - #1024

Merged
shiba4life merged 1 commit into
mainfrom
kanban/f8267-discoveryUtils-dead-exports
May 12, 2026
Merged

refactor(discovery/utils): drop 2 dead exports + unexport 2 internal types#1024
shiba4life merged 1 commit into
mainfrom
kanban/f8267-discoveryUtils-dead-exports

Conversation

@shiba4life

Copy link
Copy Markdown
Collaborator

Summary

discoveryUtils.ts had four exports flagged by ts-unused-exports:

  • Deleted TRUST_TIER_LABELS and trustTierLabel — 0 references anywhere in the codebase; fully dead.
  • Unexported inferCategory and PreviewItem — 0 external references, but used internally (groupByCategory calls inferCategory; buildPreviewItems returns PreviewItem). Kept the definitions, dropped the export keyword.

Externally-imported symbols (groupByCategory, fieldCount, buildPreviewItems, isLocalModeError) are untouched. Single-file change, ~13 line net removal, zero behavior change.

Continues #1014/#1015/#1017/#1018/#1022/#1023.

Test plan

  • npm run typecheck — passes
  • npm run lint — 0 errors (pre-existing warnings unchanged)
  • npm test — 788/788 pass
  • npx ts-unused-exports tsconfig.json | grep discoveryUtils.ts — clean

…types

discoveryUtils.ts exported TRUST_TIER_LABELS and trustTierLabel with
zero references anywhere in the codebase — deleted. inferCategory and
PreviewItem were exported but only consumed inside this file
(groupByCategory calls inferCategory; buildPreviewItems returns
PreviewItem) — dropped the export keyword, kept the definitions.

Continues #1014/#1015/#1017/#1018/#1022/#1023.
@shiba4life
shiba4life enabled auto-merge May 12, 2026 13:13
@shiba4life
shiba4life added this pull request to the merge queue May 12, 2026
Merged via the queue into main with commit 33c705f May 12, 2026
12 checks passed
@shiba4life
shiba4life deleted the kanban/f8267-discoveryUtils-dead-exports branch May 12, 2026 13:15
github-merge-queue Bot pushed a commit that referenced this pull request May 13, 2026
…1027)

ts-unused-exports flagged UPGRADE_POLL_INTERVAL_MS, UPGRADE_POLL_MAX_MS,
and CANCELLED_BANNER_MS in CloudMigrationSettings.tsx. All four call
sites are inside the same file; the colocated test file does not import
them. Drop the `export` keyword on the three const declarations.

Behavior-preserving — pure dead-export sweep. Continues the cleanup
from #1014/#1015/#1017/#1018/#1022/#1023/#1024/#1025/#1026.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant