Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unused 2nd pass from runJSify. NFC #18236

Merged
merged 1 commit into from
Nov 21, 2022
Merged

Conversation

RReverser
Copy link
Collaborator

@RReverser RReverser commented Nov 19, 2022

I tried to understand exactly what both passes do before making some modifications to this code, so I unrolled the function into two copies, separately for each pass, then removed dead/unreachable code in each of those copies, and... the 2nd pass didn't have anything left.

Looks like it should be safe to remove and simplify the function a little.

I tried to understand exactly what both passes do before modifying this code, so I unrolled function into two copies - separately for each pass, one with `mainPass = true` and one with `mainPass = false` - then removed dead/unreachable code in each of those copies, and... the 2nd pass didn't have anything left.
Copy link
Member

@kripken kripken left a comment

Choose a reason for hiding this comment

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

lgtm, thanks! I think we needed multiple passes once, but I guess no longer after the many simplifications that have happened (mostly by @sbc100 ).

Copy link
Collaborator

@sbc100 sbc100 left a comment

Choose a reason for hiding this comment

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

lgtm if the tests pass!

@RReverser RReverser merged commit d659edc into main Nov 21, 2022
@RReverser RReverser deleted the try-remove-2nd-pass branch November 21, 2022 21:16
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.

3 participants