Skip to content

Commit d500cf7

Browse files
author
Tim Vermeulen
committed
Remove deprecations
1 parent 4708b34 commit d500cf7

File tree

3 files changed

+0
-48
lines changed

3 files changed

+0
-48
lines changed

Sources/Algorithms/Chain.swift

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -317,20 +317,3 @@ extension Chain2Sequence: RandomAccessCollection
317317
public func chain<S1, S2>(_ s1: S1, _ s2: S2) -> Chain2Sequence<S1, S2> {
318318
Chain2Sequence(base1: s1, base2: s2)
319319
}
320-
321-
// MARK: - Deprecations
322-
323-
@available(*, deprecated, renamed: "Chain2Sequence")
324-
public typealias Chain = Chain2Sequence
325-
326-
@available(*, deprecated, renamed: "Chain2Sequence")
327-
public typealias Chain2 = Chain2Sequence
328-
329-
extension Sequence {
330-
@available(*, deprecated, message: "Use the chain(_:_:) function, instead.")
331-
public func chained<S: Sequence>(with other: S) -> Chain2Sequence<Self, S>
332-
where Element == S.Element
333-
{
334-
Chain2Sequence(base1: self, base2: other)
335-
}
336-
}

Sources/Algorithms/Chunked.swift

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -141,18 +141,6 @@ extension ChunkedByCollection: BidirectionalCollection
141141

142142
extension ChunkedByCollection: LazyCollectionProtocol {}
143143

144-
@available(*, deprecated, renamed: "ChunkedByCollection")
145-
public typealias LazyChunked<Base: Collection, Subject>
146-
= ChunkedByCollection<Base, Subject>
147-
148-
@available(*, deprecated, renamed: "ChunkedByCollection")
149-
public typealias Chunked<Base: Collection, Subject>
150-
= ChunkedByCollection<Base, Subject>
151-
152-
@available(*, deprecated, renamed: "ChunkedByCollection")
153-
public typealias ChunkedBy<Base: Collection, Subject>
154-
= ChunkedByCollection<Base, Subject>
155-
156144
/// A collection wrapper that breaks a collection into chunks based on a
157145
/// predicate.
158146
///

Sources/Algorithms/Rotate.swift

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -277,22 +277,3 @@ extension MutableCollection where Self: BidirectionalCollection {
277277
rotate(subrange: startIndex..<endIndex, toStartAt: newStart)
278278
}
279279
}
280-
281-
// Deprecations
282-
283-
extension MutableCollection {
284-
@available(*, deprecated, renamed: "rotate(subrange:toStartAt:)")
285-
@discardableResult
286-
public mutating func rotate(
287-
subrange: Range<Index>,
288-
at newStart: Index) -> Index
289-
{
290-
rotate(subrange: subrange, toStartAt: newStart)
291-
}
292-
293-
@available(*, deprecated, renamed: "rotate(toStartAt:)")
294-
@discardableResult
295-
public mutating func rotate(at newStart: Index) -> Index {
296-
rotate(toStartAt: newStart)
297-
}
298-
}

0 commit comments

Comments
 (0)