-
Notifications
You must be signed in to change notification settings - Fork 393
Deprecate more usage of QuantityType #1019
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
Conversation
Continued from #864 |
@@ -43,16 +43,6 @@ public static partial class Quantity | |||
Writer.WL(@" | |||
}; | |||
|
|||
// Used by the QuantityInfo .ctor to map a name to a QuantityType. Will be removed when QuantityType | |||
// will be removed. | |||
internal static readonly IDictionary<string, QuantityType> QuantityTypeByName = new Dictionary<string, QuantityType> |
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.
This was no longer used anywhere
@@ -585,7 +587,7 @@ public bool Equals({_quantity.Name} other, double tolerance, ComparisonType comp | |||
/// <returns>A hash code for the current {_quantity.Name}.</returns> | |||
public override int GetHashCode() | |||
{{ | |||
return new {{ QuantityType, Value, Unit }}.GetHashCode(); | |||
return new {{ Info.Name, Value, Unit }}.GetHashCode(); |
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.
Matching implementation to main library
Codecov Report
@@ Coverage Diff @@
## master #1019 +/- ##
========================================
- Coverage 82.7% 82.7% -0.0%
========================================
Files 310 310
Lines 46586 46585 -1
========================================
- Hits 38526 38525 -1
Misses 8060 8060
Continue to review full report at Codecov.
|
CodeCov is really hating me today. Love the error for a deleted/unused line of code: "Your changes would remove code coverage for this line" 😄 |
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.
Looks great to me!
{ "VolumetricHeatCapacity", QuantityType.VolumetricHeatCapacity }, | ||
{ "WarpingMomentOfInertia", QuantityType.WarpingMomentOfInertia }, | ||
}; | ||
|
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.
Good riddance!
Nuget should be out shortly |
I noticed we had only partially deprecated QuantityType. I think this hits all of them.