Skip to content

refactor(parser): remove dead code from modifier parsing#20735

Merged
graphite-app[bot] merged 1 commit intomainfrom
om/03-23-refactor_parser_remove_dead_code_from_modifier_parsing
Mar 25, 2026
Merged

refactor(parser): remove dead code from modifier parsing#20735
graphite-app[bot] merged 1 commit intomainfrom
om/03-23-refactor_parser_remove_dead_code_from_modifier_parsing

Conversation

@overlookmotel
Copy link
Copy Markdown
Member

@overlookmotel overlookmotel commented Mar 25, 2026

Remove ModifierFlags::TYPE_PARAM and impl TryFrom<Token> for Modifier. Both are dead code - not used anywhere.

Copy link
Copy Markdown
Member Author

overlookmotel commented Mar 25, 2026


How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • 0-merge - adds this PR to the back of the merge queue
  • hotfix - for urgent changes, fast-track this PR to the front of the merge queue

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

This stack of pull requests is managed by Graphite. Learn more about stacking.

@github-actions github-actions bot added the A-parser Area - Parser label Mar 25, 2026
@github-actions github-actions bot added the C-cleanup Category - technical debt or refactoring. Solution not expected to change behavior label Mar 25, 2026
@overlookmotel overlookmotel marked this pull request as ready for review March 25, 2026 15:34
Copilot AI review requested due to automatic review settings March 25, 2026 15:34
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR removes dead code from the parser’s modifier parsing implementation, simplifying the modifiers module without changing behavior.

Changes:

  • Removed ModifierFlags::TYPE_PARAM (no longer referenced).
  • Removed impl TryFrom<Token> for Modifier and the corresponding Token import.

@codspeed-hq
Copy link
Copy Markdown

codspeed-hq bot commented Mar 25, 2026

Merging this PR will not alter performance

✅ 53 untouched benchmarks
⏩ 3 skipped benchmarks1


Comparing om/03-23-refactor_parser_remove_dead_code_from_modifier_parsing (2f5ebf0) with main (b02fe6e)2

Open in CodSpeed

Footnotes

  1. 3 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports.

  2. No successful run was found on main (e8a6c99) during the generation of this report, so b02fe6e was used instead as the comparison base. There might be some changes unrelated to this pull request in this report.

@camc314 camc314 added the 0-merge Merge with Graphite Merge Queue label Mar 25, 2026
Copy link
Copy Markdown
Contributor

camc314 commented Mar 25, 2026

Merge activity

Remove `ModifierFlags::TYPE_PARAM` and `impl TryFrom<Token> for Modifier`. Both are dead code - not used anywhere.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-parser Area - Parser C-cleanup Category - technical debt or refactoring. Solution not expected to change behavior

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants