Skip to content

Commit b4316d7

Browse files
Muximizeangularsen
andauthored
Clean up some leftovers from Nan & Infinity checks (#1366)
I think this was forgotten in #1289, removes 3k+ lines of comments that are not true anymore. --------- Co-authored-by: Andreas Gullberg Larsen <andreas.larsen84@gmail.com>
1 parent 32fbd5d commit b4316d7

File tree

249 files changed

+2
-3408
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

249 files changed

+2
-3408
lines changed

CodeGen/Generators/NanoFrameworkGen/QuantityGenerator.cs

+1-3
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ public struct {_quantity.Name}
6565
/// </summary>
6666
/// <param name=""value"">The numeric value to construct this quantity with.</param>
6767
/// <param name=""unit"">The unit representation to construct this quantity with.</param>
68-
/// <exception cref=""ArgumentException"">If value is NaN or Infinity.</exception>
6968
public {_quantity.Name}(double value, {_unitEnumName} unit)
7069
{{
7170
_value = value;
@@ -142,8 +141,7 @@ private void GenerateStaticFactoryMethods()
142141
Writer.WL($@"
143142
/// <summary>
144143
/// Creates a <see cref=""{_quantity.Name}""/> from <see cref=""{_unitEnumName}.{unit.SingularName}""/>.
145-
/// </summary>
146-
/// <exception cref=""ArgumentException"">If value is NaN or Infinity.</exception>");
144+
/// </summary>");
147145
Writer.WLIfText(2, GetObsoleteAttributeOrNull(unit));
148146
Writer.WL($@"
149147
public static {_quantity.Name} From{unit.PluralName}(double {valueParamName}) => new {_quantity.Name}({valueParamName}, {_unitEnumName}.{unit.SingularName});

CodeGen/Generators/UnitsNetGen/QuantityGenerator.cs

+1-3
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,6 @@ private void GenerateInstanceConstructors()
203203
/// </summary>
204204
/// <param name=""value"">The numeric value to construct this quantity with.</param>
205205
/// <param name=""unit"">The unit representation to construct this quantity with.</param>
206-
/// <exception cref=""ArgumentException"">If value is NaN or Infinity.</exception>
207206
public {_quantity.Name}(double value, {_unitEnumName} unit)
208207
{{");
209208
Writer.WL(@"
@@ -419,8 +418,7 @@ private void GenerateStaticFactoryMethods()
419418
Writer.WL($@"
420419
/// <summary>
421420
/// Creates a <see cref=""{_quantity.Name}""/> from <see cref=""{_unitEnumName}.{unit.SingularName}""/>.
422-
/// </summary>
423-
/// <exception cref=""ArgumentException"">If value is NaN or Infinity.</exception>");
421+
/// </summary>");
424422
Writer.WLIfText(2, GetObsoleteAttributeOrNull(unit));
425423
Writer.WL($@"
426424
public static {_quantity.Name} From{unit.PluralName}(double value)

UnitsNet.NanoFramework/GeneratedCode/Quantities/AbsorbedDoseOfIonizingRadiation.g.cs

-17
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

UnitsNet.NanoFramework/GeneratedCode/Quantities/Acceleration.g.cs

-15
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)