chore: drop three fields nothing reads #24
Loading…
Reference in a new issue
No description provided.
Delete branch "chore/drop-dead-fields"
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?
Checklist
Problem
Three fields were written and never read.
b:ci.kindwas set on every buffer, but the winbar picks its format from theparsed URI —
plugin/ci.lua:63readsu.kind, not the buffer variable.b:ci.run_idlost its only reader in #20, when-stopped navigating to therun.
ci.Check.run_idnever had one. The discriminator that yields it,detailsUrl:match('/actions/runs/(%d+)/job/(%d+)'), only needs the job idbeside it.
Solution
Removed, along with their annotations. Nine lines out, one in.
Worth noting what was not removed:
ansi.reset_cache()looked dead by thesame test but is called from
spec/ansi_spec.luato keep the highlight cachedeterministic between cases.