Skip to content

refactor(minifier): remove dead SymbolValue::scope_id field#23464

Merged
graphite-app[bot] merged 1 commit into
mainfrom
refactor/minifier-remove-dead-scope-id
Jun 16, 2026
Merged

refactor(minifier): remove dead SymbolValue::scope_id field#23464
graphite-app[bot] merged 1 commit into
mainfrom
refactor/minifier-remove-dead-scope-id

Conversation

@Dunqing

@Dunqing Dunqing commented Jun 16, 2026

Copy link
Copy Markdown
Member

Summary

  • Remove SymbolValue::scope_id: it was written in init_value but never read. The declaring scope is still looked up locally there to gate initialized_constant on the DirectEval flag — only the stored-but-unused field (and the now-dead ScopeId import) are dropped.
  • No behavior change; pure dead-field removal. Verified by cargo test -p oxc_minifier (535 + 2 passed).

Dunqing commented Jun 16, 2026

Copy link
Copy Markdown
Member Author

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.

@codspeed-hq

codspeed-hq Bot commented Jun 16, 2026

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 52 untouched benchmarks
⏩ 19 skipped benchmarks1


Comparing refactor/minifier-remove-dead-scope-id (91509fb) with main (09762d9)

Open in CodSpeed

Footnotes

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

@graphite-app graphite-app Bot force-pushed the feat/minifier-inline-readonly-vars branch from 06c82aa to d251662 Compare June 16, 2026 02:03
@graphite-app graphite-app Bot requested a review from overlookmotel as a code owner June 16, 2026 02:03
@graphite-app graphite-app Bot force-pushed the feat/minifier-inline-readonly-vars branch from d251662 to 8fcaf80 Compare June 16, 2026 02:04
@graphite-app graphite-app Bot force-pushed the refactor/minifier-remove-dead-scope-id branch from 0fa5bb1 to 67351b4 Compare June 16, 2026 02:04
@graphite-app graphite-app Bot changed the base branch from feat/minifier-inline-readonly-vars to graphite-base/23464 June 16, 2026 02:09
@graphite-app graphite-app Bot force-pushed the graphite-base/23464 branch from 8fcaf80 to 09762d9 Compare June 16, 2026 02:13
@graphite-app graphite-app Bot force-pushed the refactor/minifier-remove-dead-scope-id branch from 67351b4 to 91ff1c1 Compare June 16, 2026 02:13
@graphite-app graphite-app Bot changed the base branch from graphite-base/23464 to main June 16, 2026 02:14
@graphite-app graphite-app Bot force-pushed the refactor/minifier-remove-dead-scope-id branch from 91ff1c1 to 91509fb Compare June 16, 2026 02:14
@Dunqing Dunqing added the 0-merge Merge with Graphite Merge Queue label Jun 16, 2026

Dunqing commented Jun 16, 2026

Copy link
Copy Markdown
Member Author

Merge activity

## Summary

- Remove `SymbolValue::scope_id`: it was written in `init_value` but never read. The declaring scope is still looked up locally there to gate `initialized_constant` on the `DirectEval` flag — only the stored-but-unused field (and the now-dead `ScopeId` import) are dropped.
- No behavior change; pure dead-field removal. Verified by `cargo test -p oxc_minifier` (535 + 2 passed).
@graphite-app graphite-app Bot force-pushed the refactor/minifier-remove-dead-scope-id branch from 91509fb to 01fe442 Compare June 16, 2026 02:38
@graphite-app graphite-app Bot merged commit 01fe442 into main Jun 16, 2026
29 checks passed
@graphite-app graphite-app Bot removed the 0-merge Merge with Graphite Merge Queue label Jun 16, 2026
@graphite-app graphite-app Bot deleted the refactor/minifier-remove-dead-scope-id branch June 16, 2026 02:41
camc314 pushed a commit that referenced this pull request Jul 3, 2026
## Summary

- Remove `SymbolValue::scope_id`: it was written in `init_value` but never read. The declaring scope is still looked up locally there to gate `initialized_constant` on the `DirectEval` flag — only the stored-but-unused field (and the now-dead `ScopeId` import) are dropped.
- No behavior change; pure dead-field removal. Verified by `cargo test -p oxc_minifier` (535 + 2 passed).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-minifier Area - Minifier

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant