Remove dead listNoteSlugs() export #11
No reviewers
Labels
No labels
domain:backend
domain:devops
domain:frontend
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
forgejo_admin/pal-e-docs-app!11
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "10-remove-dead-listnoteslugs"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Remove the unused
listNoteSlugs()function fromsrc/lib/api.ts. It was replaced by the slug cache insrc/lib/slugCache.tsand has zero remaining import references.Changes
listNoteSlugs()function (lines 226-229), a 4-line wrapper that fetched all notes just to extract slugs. The slug cache handles this with TTL and deduplication.Test Plan
npm run checkpasses with 0 errors, 0 warningsnpm run buildsucceedsgrep -r listNoteSlugs src/confirms zero remaining referencesReview Checklist
listNoteSlugsin the codebasenpm run checkcleannpm run buildsucceedsslugCache.tsuseslistNotesdirectly, unaffected by this removalRelated
Closes #10
Self-Review
Verdict: Clean -- no findings.
listNoteSlugs()functiongrepconfirms zero references)slugCache.tscallslistNotesdirectly, unaffectednpm run checkandnpm run buildboth pass