Skip to content

Commit e809d51

Browse files
SimonCroppantonfirsov
authored andcommitted
remove SteppedRange (#980)
1 parent 52caddf commit e809d51

1 file changed

Lines changed: 0 additions & 27 deletions

File tree

src/ImageSharp/Common/Extensions/EnumerableExtensions.cs

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff 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>

0 commit comments

Comments
 (0)