Skip to content

chore: remove unused Tokens convenience wrappers - #1168

Closed
theredspoon wants to merge 1 commit into
vale-cli:v3from
theredspoon:chore/remove-dead-token-cache
Closed

chore: remove unused Tokens convenience wrappers#1168
theredspoon wants to merge 1 commit into
vale-cli:v3from
theredspoon:chore/remove-dead-token-cache

Conversation

@theredspoon

Copy link
Copy Markdown

Problem

File.Tokens and TokenCache.Tokens are convenience wrappers around TokensWith (with an empty model name) that have no callers anywhere in the codebase. TokensWith itself is what every check type actually uses.

Fix

Removed both. No behavior change.

Testing

Full repo suite and -race are clean.

Related

Found during review of #1162. Split out here as an independent cleanup per the smaller-PR preference from #938.

File.Tokens and TokenCache.Tokens wrap TokensWith with an empty model
name but have no callers anywhere in the codebase; TokensWith itself is
what every check type actually uses.
@theredspoon

Copy link
Copy Markdown
Author

Closing this as it's a standalone dead-code removal, which the new CONTRIBUTING.md guidelines say gets closed.

@theredspoon theredspoon closed this Sep 7, 2026
@github-actions github-actions Bot locked and limited conversation to collaborators Sep 7, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant