-
Notifications
You must be signed in to change notification settings - Fork 387
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 static Default getters, obsoleted by UnitsNetSetup #1475
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## release/v6 #1475 +/- ##
==========================================
Coverage 86% 86%
==========================================
Files 298 298
Lines 30520 30516 -4
==========================================
Hits 26404 26404
+ Misses 4116 4112 -4 ☔ View full report in Codecov by Sentry. |
@angularsen Sorry, I've just gotten around to review these recent changes.. I know these had been made [Obsolete] for a while now, but are you sure there is sufficient reason to remove them?
|
I had the same thought, I don't have a strong opinion here. My thinking was that it may be better to have a single way to access these things, for docs/sample code and what not, but the syntax becomes more clunky. The main benefit of moving things into I'm fine reverting this, but we should then remove the obsolete flags in v5 too. |
Sorry for not waiting for review and rushing a bit, but I have a little bit of extra time in the holidays and just want to get things done 😄 We can always revert, I'm glad to have a pair of extra eyes on these things 🙇 |
Well, it was on the wish-list- I hadn't gotten around to arguing against it :) I wasn't 100% sure whether they are safe in Plus I'm sure there are many holdouts who ignored the [Obsolete] flag :) |
Here's one 🤣 |
Per discussion in v6, we no longer want to remove these. #1475 (comment)
Per [discussion ](#1475 (comment)) in v6, we no longer want to remove these. Already reverted in v6 with #1480
Ref #1200
Remove static
Default
getter property forUnitConverter
,UnitAbbreviationsCache
,QuantityParser
,UnitParser
. These just pointed to the singletonUnitsNetSetup.Default
and were made obsolete in v5.