From 8bbb9e0466f87355e50ec3720e0cb8ca5dbf0191 Mon Sep 17 00:00:00 2001 From: Simon Cropp Date: Sat, 17 Aug 2019 20:58:37 +1000 Subject: [PATCH] remove SteppedRange (#980) --- .../Common/Extensions/EnumerableExtensions.cs | 27 ------------------- 1 file changed, 27 deletions(-) diff --git a/src/ImageSharp/Common/Extensions/EnumerableExtensions.cs b/src/ImageSharp/Common/Extensions/EnumerableExtensions.cs index e28db7cff..cff6e3b60 100644 --- a/src/ImageSharp/Common/Extensions/EnumerableExtensions.cs +++ b/src/ImageSharp/Common/Extensions/EnumerableExtensions.cs @@ -11,33 +11,6 @@ namespace SixLabors.ImageSharp.Common /// internal static class EnumerableExtensions { - /// - /// Generates a sequence of integral numbers within a specified range. - /// - /// - /// The start index, inclusive. - /// - /// - /// The end index, exclusive. - /// - /// - /// The incremental step. - /// - /// - /// The that contains a range of sequential integral numbers. - /// - public static IEnumerable SteppedRange(int fromInclusive, int toExclusive, int step) - { - // Borrowed from Enumerable.Range - long num = (fromInclusive + toExclusive) - 1L; - if ((toExclusive < 0) || (num > 0x7fffffffL)) - { - throw new ArgumentOutOfRangeException(nameof(toExclusive)); - } - - return RangeIterator(fromInclusive, i => i < toExclusive, step); - } - /// /// Generates a sequence of integral numbers within a specified range. ///