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 some unused "renameReference" code in static/dynamic blocks #3920

Merged
merged 1 commit into from Sep 11, 2023

Conversation

cmdcolin
Copy link
Collaborator

There is a function called renameReference on the blocks, but this code is unused and a bit hairy, I think it is probably ok to just remove. also converts the Array.prototype.reduce into plain for loop based "sum" helper

@github-actions github-actions bot added the needs label triage Needs a label to show in changelog (breaking, enhancement, bug, documentation, or internal) label Sep 11, 2023
@cmdcolin
Copy link
Collaborator Author

the block code could be further improved in some ways. the interregionpaddingblock extends baseblock, but baseblock has things like "refName" and "assembly" but interregionpadding blocks do not provide this.

@cmdcolin cmdcolin added internal and removed needs label triage Needs a label to show in changelog (breaking, enhancement, bug, documentation, or internal) labels Sep 11, 2023
@cmdcolin
Copy link
Collaborator Author

the renameReference function is immutable (not mutating the block) so not necessarily at odds with the fact that the blocks are an mst view, but still probably an odd function to use

@cmdcolin cmdcolin merged commit 60acfea into main Sep 11, 2023
4 of 11 checks passed
@cmdcolin cmdcolin changed the title Remove some unused "renameReference" code in static blocks/dynamic blocks Remove some unused "renameReference" code in static/dynamic blocks Sep 11, 2023
@cmdcolin cmdcolin deleted the refactor_blocks branch September 11, 2023 19:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant