Skip to content

chore: remove dead code (unused accessors, duplicate keychain fn, unused docs component) - #19

Open
nitin-1926 wants to merge 3 commits into
mainfrom
chore/remove-dead-code
Open

chore: remove dead code (unused accessors, duplicate keychain fn, unused docs component)#19
nitin-1926 wants to merge 3 commits into
mainfrom
chore/remove-dead-code

Conversation

@nitin-1926

Copy link
Copy Markdown
Owner

Removes verified-dead code surfaced by a repo-wide over-engineering audit. Pure deletions / dedup — no behavior change. All symbols grep-verified to have zero (or only self/test) callers across the module.

Changes

refactor(manifest) — drop Manifest.HostInstalls() (zero callers) and Manifest.GlobalInstalls() (only its own test). CascadeInstalls() already covers the global+host union used at launch-time linking. Test TestGlobalInstalls removed with it.

refactor(credentials) — fold DeleteMacKeychainOAuthDefault into DeleteMacKeychainOAuth. The two were byte-identical across all three platform files (darwin, non-darwin stub, windows). Its single caller (ccpm set-defaultapplyAPIKeyDefault) now calls the survivor directly; the default-slot rationale moves into the survivor's doc comment.

chore(docs) — delete CommandReference component; never imported anywhere in the docs site.

Verification

  • go build for the affected packages passes on darwin/arm64, linux/amd64, windows/amd64 (the keychain change spans build-tagged files).
  • go test ./internal/manifest/... ./internal/credentials/... green.
  • No lingering references to any removed symbol.

Net: ~-90 lines, no dependency or API changes visible to users.

🤖 Generated with Claude Code

HostInstalls has no callers anywhere; GlobalInstalls only its own test.
CascadeInstalls already covers the global+host union that launch-time
linking needs. Drop both methods and TestGlobalInstalls.
…MacKeychainOAuth

The Default variant was byte-identical to DeleteMacKeychainOAuth in all
three platform files (darwin, non-darwin stub, windows) — same service
derivation, same per-account delete loop. Its single caller in
set-default now calls DeleteMacKeychainOAuth directly; the survivor's doc
comment absorbs the default-slot rationale.
Never imported anywhere in the docs site — only self-references.
@cursor

cursor Bot commented Jul 22, 2026

Copy link
Copy Markdown

Bugbot is not enabled for your account, so this pull request was not reviewed.

Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.

@vercel

vercel Bot commented Jul 22, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
ccpm Ready Ready Preview, Comment Jul 23, 2026 6:04am

@coderabbitai

coderabbitai Bot commented Jul 22, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are limited based on label configuration.

🏷️ Required labels (at least one) (2)
  • bug
  • feature
🚫 Excluded labels (none allowed) (1)
  • wip

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: d6daeb4a-3631-48b0-924c-59bff18d7e07

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch chore/remove-dead-code

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

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