File tree Expand file tree Collapse file tree
src/ImageSharp/Common/Extensions Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,33 +11,6 @@ namespace SixLabors.ImageSharp.Common
1111 /// </summary>
1212 internal static class EnumerableExtensions
1313 {
14- /// <summary>
15- /// Generates a sequence of integral numbers within a specified range.
16- /// </summary>
17- /// <param name="fromInclusive">
18- /// The start index, inclusive.
19- /// </param>
20- /// <param name="toExclusive">
21- /// The end index, exclusive.
22- /// </param>
23- /// <param name="step">
24- /// The incremental step.
25- /// </param>
26- /// <returns>
27- /// The <see cref="IEnumerable{Int32}"/> that contains a range of sequential integral numbers.
28- /// </returns>
29- public static IEnumerable < int > SteppedRange ( int fromInclusive , int toExclusive , int step )
30- {
31- // Borrowed from Enumerable.Range
32- long num = ( fromInclusive + toExclusive ) - 1L ;
33- if ( ( toExclusive < 0 ) || ( num > 0x7fffffffL ) )
34- {
35- throw new ArgumentOutOfRangeException ( nameof ( toExclusive ) ) ;
36- }
37-
38- return RangeIterator ( fromInclusive , i => i < toExclusive , step ) ;
39- }
40-
4114 /// <summary>
4215 /// Generates a sequence of integral numbers within a specified range.
4316 /// </summary>
You can’t perform that action at this time.
0 commit comments