Skip to content

Commit 676319c

Browse files
committed
undo
1 parent fe04b32 commit 676319c

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

src/Extensions/Span/SpanExtensions.Linq.cs

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ public static T Sum<T>(this Span<T> source) where T : INumber<T>
4949
return ReadOnlySpanExtensions.Sum<T>(source);
5050
}
5151
#else
52-
5352
#if NET5_0_OR_GREATER
5453

5554
/// <summary>
@@ -62,7 +61,6 @@ public static Half Sum(this Span<Half> source)
6261
{
6362
return ReadOnlySpanExtensions.Sum(source);
6463
}
65-
#endif
6664

6765
/// <summary>
6866
/// Computes the Sum of all the elements in <paramref name="source"/>.
@@ -195,7 +193,6 @@ public static BigInteger Sum(this Span<BigInteger> source)
195193
return ReadOnlySpanExtensions.Sum(source);
196194
}
197195
#endif
198-
199196
/// <summary>
200197
/// Bypasses a specified number of elements in <paramref name="source"/> and then returns the remaining elements.
201198
/// </summary>
@@ -300,7 +297,6 @@ public static Span<T> TakeLast<T>(this Span<T> source, int count)
300297
}
301298
return source[(source.Length - count)..];
302299
}
303-
304300
#if NET7_0_OR_GREATER
305301

306302
/// <summary>
@@ -330,7 +326,6 @@ public static Half Average(this Span<Half> source)
330326
return ReadOnlySpanExtensions.Average(source);
331327
}
332328
#endif
333-
334329
/// <summary>
335330
/// Computes the Average of all the values in <paramref name="source"/>.
336331
/// </summary>
@@ -477,7 +472,6 @@ public static T Min<T>(this Span<T> source) where T : INumber<T>
477472
return ReadOnlySpanExtensions.Min<T>(source);
478473
}
479474
#else
480-
481475
#if NET5_0_OR_GREATER
482476

483477
/// <summary>
@@ -491,7 +485,6 @@ public static Half Min(this Span<Half> source)
491485
return ReadOnlySpanExtensions.Min(source);
492486
}
493487
#endif
494-
495488
/// <summary>
496489
/// Computes the Min of all the values in <paramref name="source"/>.
497490
/// </summary>
@@ -623,7 +616,6 @@ public static BigInteger Min(this Span<BigInteger> source)
623616
return ReadOnlySpanExtensions.Min(source);
624617
}
625618
#endif
626-
627619
#if NET7_0_OR_GREATER
628620

629621
/// <summary>
@@ -638,7 +630,6 @@ public static T Max<T>(this Span<T> source) where T : INumber<T>
638630
return ReadOnlySpanExtensions.Max<T>(source);
639631
}
640632
#else
641-
642633
#if NET5_0_OR_GREATER
643634

644635
/// <summary>
@@ -652,7 +643,6 @@ public static Half Max(this Span<Half> source)
652643
return ReadOnlySpanExtensions.Max(source);
653644
}
654645
#endif
655-
656646
/// <summary>
657647
/// Computes the Max of all the values in <paramref name="source"/>.
658648
/// </summary>
@@ -784,5 +774,6 @@ public static BigInteger Max(this Span<BigInteger> source)
784774
return ReadOnlySpanExtensions.Max(source);
785775
}
786776
#endif
777+
787778
}
788779
}

0 commit comments

Comments
 (0)