Skip to content

chore(api): remove dead ApiClient factory methods and metrics helper#1331

Open
jwiegley wants to merge 1 commit into
dc/api-bundle-cas-cleanupfrom
dc/api-client-cleanup
Open

chore(api): remove dead ApiClient factory methods and metrics helper#1331
jwiegley wants to merge 1 commit into
dc/api-bundle-cas-cleanupfrom
dc/api-client-cleanup

Conversation

@jwiegley
Copy link
Copy Markdown
Contributor

@jwiegley jwiegley commented May 11, 2026

Summary

Remove ApiContext::without_auth, with_auth, and ApiClient::context_mut — zero callers in all production code and tests. All API access uses the single ApiContext::new constructor. Also removes MetricsUploadResponse::successful_indices which was never consulted by the upload response handler.

Test plan

  • task build passes
  • task lint passes

🤖 Generated with Claude Code


Open in Devin Review

Copy link
Copy Markdown
Contributor

@devin-ai-integration devin-ai-integration Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 2 additional findings.

Open in Devin Review

ApiContext::without_auth, ApiContext::with_auth, and
ApiClient::context_mut had zero callers — all production code reaches
the API via the single ApiContext::new constructor. Remove them along
with MetricsUploadResponse::successful_indices which was similarly
never consulted by the upload response handler.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@jwiegley jwiegley force-pushed the dc/api-client-cleanup branch from 5b6c496 to 7f15079 Compare May 28, 2026 18:13
@jwiegley jwiegley force-pushed the dc/api-bundle-cas-cleanup branch from 254052f to 1f6cf1a Compare May 28, 2026 18:13
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