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

refactor(api/subscription): drop 2 dead exports + unexport 1 internal type - #1023

Merged
shiba4life merged 1 commit into
mainfrom
refactor/subscription-client-dead-exports
May 12, 2026
Merged

refactor(api/subscription): drop 2 dead exports + unexport 1 internal type#1023
shiba4life merged 1 commit into
mainfrom
refactor/subscription-client-dead-exports

Conversation

@shiba4life

Copy link
Copy Markdown
Collaborator

Summary

subscriptionClient.ts exported StorageInfo and getStorageInfo with zero references in the codebase — fully dead. SubscriptionStatus was exported but only mentioned in a doc comment in CloudMigrationSettings.test.tsx (not imported anywhere); kept as a file-local type since it's the return type of the still-exported getSubscriptionStatus.

Continues the dead-export sweep started in #1014 / #1015 / #1017 / #1018 / #1022.

Changes

  • Delete StorageInfo interface (5 lines)
  • Delete getStorageInfo function (8 lines)
  • Drop export keyword from SubscriptionStatus interface — leaves body intact

Net diff: ~14 line removals, single file, zero behavior change.

Verified ts-unused-exports no longer flags subscriptionClient.ts.

Test plan

  • npm run typecheck passes
  • npm run lint passes (no new warnings)
  • npm test — 788/788 pass
  • npx ts-unused-exports tsconfig.json | grep subscriptionClient.ts → clean

… type

subscriptionClient.ts exported StorageInfo and getStorageInfo with zero
references in the codebase — fully dead. SubscriptionStatus was exported
but only mentioned in a doc comment in CloudMigrationSettings.test.tsx
(not imported anywhere); kept as a file-local type since it's the return
type of the still-exported getSubscriptionStatus.

Net diff ~14 lines, single file. Continues #1014/#1015/#1017/#1018/#1022.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@shiba4life
shiba4life enabled auto-merge May 12, 2026 12:15
@shiba4life
shiba4life added this pull request to the merge queue May 12, 2026
Merged via the queue into main with commit ba203ab May 12, 2026
12 checks passed
@shiba4life
shiba4life deleted the refactor/subscription-client-dead-exports branch May 12, 2026 12:18
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