Skip to content

chore: remove unused Tokens convenience wrappers - #1168

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

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.
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