chore(chat): remove dead getActiveSubscription helper#1703
Conversation
The lib/stripe/getActiveSubscription.tsx helper is unreachable — grep across chat returns only its own definition. Remove it as part of the Agent API migration row 25.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Warning Rate limit exceeded
Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 59 minutes and 1 seconds. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
There was a problem hiding this comment.
No issues found across 1 file
Confidence score: 5/5
- Automated review surfaced no issues in the provided summaries.
- No files require special attention.
Auto-approved: This is a safe cleanup PR that removes a single unused helper function with no remaining references in the codebase.
No monorepo caller hits this endpoint — chat's dead helper is being deleted (recoupable/chat#1703) and the replacement api route is dropped. Removing the path, mdx, nav entry, and orphaned response schemas.
No monorepo caller hits this endpoint — chat's dead helper is being deleted (recoupable/chat#1703) and the replacement api route is dropped. Removing the path, mdx, nav entry, and orphaned response schemas.
Summary
lib/stripe/getActiveSubscription.tsxis unreachable — grep across chat returns only its own definition — so this is a pure dead-code deletion. TheGET /api/subscriptionsendpoint is being removed from the public API (not migrated), so no caller replacement is needed.Test plan
grep -rn "getActiveSubscription\b" .returns zero matches after deletion