Skip to content

Add a quick fix to remove unused params, vars, and fields#296

Merged
webspam merged 3 commits into
masterfrom
remove-unused-code-action
Jun 23, 2026
Merged

Add a quick fix to remove unused params, vars, and fields#296
webspam merged 3 commits into
masterfrom
remove-unused-code-action

Conversation

@webspam

@webspam webspam commented Jun 23, 2026

Copy link
Copy Markdown
Owner

Features

  • Unused parameters, local variables, and fields now offer a "Remove unused" quick fix that deletes the binding for you
  • When a name is part of a grouped declaration, only that name and its comma are removed, leaving the rest intact even across multiple lines
  • Removing a field also clears any leftover default and defaults { ... } entries that referenced it

Refactoring

  • Extracts a shared remove_list_entry helper for deleting one entry from a comma-separated list; inline-variable removal now reuses it and gains the same multi-line cleanup

@webspam webspam enabled auto-merge (squash) June 23, 2026 13:53
@webspam webspam merged commit 4391fc2 into master Jun 23, 2026
2 checks passed
@webspam webspam deleted the remove-unused-code-action branch June 23, 2026 13:55
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