-
Notifications
You must be signed in to change notification settings - Fork 82
Remove obsolete functions #2616
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
base: main
Are you sure you want to change the base?
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2616 +/- ##
=======================================
Coverage 46% 46%
+ Complexity 6644 6641 -3
=======================================
Files 793 793
Lines 65719 65719
Branches 9844 9844
=======================================
+ Hits 30600 30601 +1
+ Misses 32758 32757 -1
Partials 2361 2361 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
feb2812 to
745a65f
Compare
|
@PaulKlint Can you please confirm which of the copies should remain? |
745a65f to
8039269
Compare
| } | ||
|
|
||
| // Note: this is a duplicate of LogicalLocation in typepal | ||
| // TODO: remove the one in TypePal |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The TODO here says the goal was the reverse of this PR?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes. There are now multiple copies of this:
I don't think this is supposed to really be in the standard library, since the use seems very specific to TModels with physical locations. If it is supposed to be released to users, we should clearly document the functions (especially the map parameter).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The blame on the line says that it's added very recently by @PaulKlint.
My main question is, why are we going against what the TODO is saying (since it's a recent TODO)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems my comment was not recorded here:
Sorry for the confusion here. Initial plan was to provide these functions with an extra mapping parameter as generic functionality. Later I came to the conclusion that it is better not to expose this and hide the mapping details in Collector and Solver. I should have removed these functions myself.
PaulKlint
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See remarks. It is fine to remove these functions.
Remove some functions, copies of which also exist here:
https://github.com/usethesource/typepal/blob/60cb6ea4febf0bf1152ec0d81279ebacc7beaaf6/src/analysis/typepal/Collector.rsc#L35-L40