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

Clean info of MethodChangeRecord #13519

Merged
merged 1 commit into from
Apr 23, 2023

Conversation

jecisc
Copy link
Member

@jecisc jecisc commented Apr 23, 2023

MethodChangeRecord saves an #info variable that contains first the last source pointer and the protocol of a removed method. The protocol is never used so I propose to remove it and transform this ugly array (why? why? why an array?!) into a variable storing the last source pointer.

I have the impression that the changes source code can be improved further but that will be for another time (or maybe it will be removed before)

MethodChangeRecord saves an #info variable that contains first the last source pointer and the protocol of a removed method.
The protocol is never used so I propose to remove it and transform this ugly array (why? why? why an array?!)  into a variable storing the last source pointer.

I have the impression that the changes source code can be improved further but that will be for another time (or maybe it will be removed before)
@MarcusDenker
Copy link
Member

I think MethodChangeRecord used to be the model that the changesorter used. And then this was hacked in, I guess.

Now we use Ring for modeling historical code, so this is not needed anymore

@MarcusDenker MarcusDenker merged commit 033cc23 into pharo-project:Pharo12 Apr 23, 2023
@jecisc jecisc deleted the remove-unused-info branch April 26, 2023 12:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants