From d500cf718ec174c58e807b0fb587f7ea14ab82b9 Mon Sep 17 00:00:00 2001 From: Tim Vermeulen Date: Sun, 5 Sep 2021 18:50:49 +0200 Subject: [PATCH] Remove deprecations --- Sources/Algorithms/Chain.swift | 17 ----------------- Sources/Algorithms/Chunked.swift | 12 ------------ Sources/Algorithms/Rotate.swift | 19 ------------------- 3 files changed, 48 deletions(-) diff --git a/Sources/Algorithms/Chain.swift b/Sources/Algorithms/Chain.swift index 1a7e9b1..572050e 100644 --- a/Sources/Algorithms/Chain.swift +++ b/Sources/Algorithms/Chain.swift @@ -317,20 +317,3 @@ extension Chain2Sequence: RandomAccessCollection public func chain(_ s1: S1, _ s2: S2) -> Chain2Sequence { Chain2Sequence(base1: s1, base2: s2) } - -// MARK: - Deprecations - -@available(*, deprecated, renamed: "Chain2Sequence") -public typealias Chain = Chain2Sequence - -@available(*, deprecated, renamed: "Chain2Sequence") -public typealias Chain2 = Chain2Sequence - -extension Sequence { - @available(*, deprecated, message: "Use the chain(_:_:) function, instead.") - public func chained(with other: S) -> Chain2Sequence - where Element == S.Element - { - Chain2Sequence(base1: self, base2: other) - } -} diff --git a/Sources/Algorithms/Chunked.swift b/Sources/Algorithms/Chunked.swift index 314262a..850ec25 100644 --- a/Sources/Algorithms/Chunked.swift +++ b/Sources/Algorithms/Chunked.swift @@ -141,18 +141,6 @@ extension ChunkedByCollection: BidirectionalCollection extension ChunkedByCollection: LazyCollectionProtocol {} -@available(*, deprecated, renamed: "ChunkedByCollection") -public typealias LazyChunked - = ChunkedByCollection - -@available(*, deprecated, renamed: "ChunkedByCollection") -public typealias Chunked - = ChunkedByCollection - -@available(*, deprecated, renamed: "ChunkedByCollection") -public typealias ChunkedBy - = ChunkedByCollection - /// A collection wrapper that breaks a collection into chunks based on a /// predicate. /// diff --git a/Sources/Algorithms/Rotate.swift b/Sources/Algorithms/Rotate.swift index 852939b..4d0fa0c 100644 --- a/Sources/Algorithms/Rotate.swift +++ b/Sources/Algorithms/Rotate.swift @@ -277,22 +277,3 @@ extension MutableCollection where Self: BidirectionalCollection { rotate(subrange: startIndex.., - at newStart: Index) -> Index - { - rotate(subrange: subrange, toStartAt: newStart) - } - - @available(*, deprecated, renamed: "rotate(toStartAt:)") - @discardableResult - public mutating func rotate(at newStart: Index) -> Index { - rotate(toStartAt: newStart) - } -}