cleanup: remove dead extractKeywords() and STOPWORDS orphaned by ILIKE removal - #352
sumitvairagar wants to merge 1 commit into
Conversation
…E removal (activeloopai#341) extractKeywords() was documented as the lexical fallback keyword extractor, but the lexical fallback was removed in bae7bbb (semantic-only proactive recall, drop ILIKE fallback). e98aa53 cleaned up stale comments in recall.ts but left this helper and its STOPWORDS set behind. Zero production callers remain — the only references outside the definition were the test file (tests/shared/recall.test.ts:495-511). STOPWORDS is private to this function and unused elsewhere (SUMMARY_STOPWORDS in mine-local.ts is a separate, unrelated constant). Changes: - Delete STOPWORDS set and extractKeywords() from recall-gate.ts - Remove extractKeywords import and its describe block from recall.test.ts Test count: 58/58 pass (was 61 — 3 extractKeywords tests removed). TypeScript: tsc --noEmit clean.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (2)
💤 Files with no reviewable changes (2)
Included review availability: Your plan provides up to 4 included reviews per hour; 3 remain after this review. 📝 WalkthroughWalkthroughThe change removes the unused ChangesRecall helper cleanup
Priority: ⬇️ Low Estimated code review effort: 1 (Trivial) | ~5 minutes Change: Refactor · Severity of issue fixed: Low Merge Risk: ⚪ Minimal · up to The change removes an identified unused helper and its associated tests; no unresolved merge risk is established. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ 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 |
Closes #341.
What
extractKeywords()(src/hooks/shared/recall-gate.ts) was documented as the lexical fallback keyword extractor, but the lexical fallback was removed inbae7bbb1(semantic-only proactive recall, drop ILIKE fallback).e98aa533cleaned up the stale comments inrecall.tsbut left this helper and itsSTOPWORDSset behind.Zero production callers remain. The only references outside the definition were the test file (
tests/shared/recall.test.ts:495-511).STOPWORDSis private to this function and has no other consumers (SUMMARY_STOPWORDSinmine-local.tsis a separate, unrelated constant — verified by grep).Changes
STOPWORDSset andextractKeywords()fromrecall-gate.tsextractKeywordsimport and itsdescribeblock fromrecall.test.tsVerification
Summary by CodeRabbit