Skip to content

Conversation

@munificent
Copy link
Member

@munificent munificent commented Nov 5, 2024

We were still passing in allowNewlines to _formatCall() even though that parameter was no longer used once Piece got the allowChildInState() API. So I removed that.

Then I noticed that the switch in _formatCall() could be more cleanly handled by having the cases in format() calculate separate directly. So I did that.

That left _formatCall() not actually doing anything useful, so I got rid of it.

There are no behavioral change, it's just a code clean-up.

We were still passing in allowNewlines to _formatCall() even though that
parameter was no longer used once Piece got the allowChildInState() API.
So I removed that.

Then I noticed that the switch in _formatCall() could be more cleanly
handled by having the cases in format() calculate separate directly. So
I did that.

That left _formatCall() not actually doing anything useful, so I got rid
of it.

There are no behavioral change, it's just a code clean-up.
@munificent munificent merged commit e62313b into main Nov 5, 2024
7 checks passed
@munificent munificent deleted the simplify-chain-piece branch November 5, 2024 19:26
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.

2 participants