Remove deprecations

This commit is contained in:
Tim Vermeulen committed 2021-09-07 21:00:19 +02:00
1 parent 4708b34399
commit d500cf718e
3 files changed
-48

No files matched your search

-17
View File
@@ -317,20 +317,3 @@ extension Chain2Sequence: RandomAccessCollection
public func chain<S1, S2>(_ s1: S1, _ s2: S2) -> Chain2Sequence<S1, S2> {
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<S: Sequence>(with other: S) -> Chain2Sequence<Self, S>
where Element == S.Element
{
Chain2Sequence(base1: self, base2: other)
}
}
-12
View File
@@ -141,18 +141,6 @@ extension ChunkedByCollection: BidirectionalCollection
extension ChunkedByCollection: LazyCollectionProtocol {}
@available(*, deprecated, renamed: "ChunkedByCollection")
public typealias LazyChunked<Base: Collection, Subject>
= ChunkedByCollection<Base, Subject>
@available(*, deprecated, renamed: "ChunkedByCollection")
public typealias Chunked<Base: Collection, Subject>
= ChunkedByCollection<Base, Subject>
@available(*, deprecated, renamed: "ChunkedByCollection")
public typealias ChunkedBy<Base: Collection, Subject>
= ChunkedByCollection<Base, Subject>
/// A collection wrapper that breaks a collection into chunks based on a
/// predicate.
///
-19
View File
@@ -277,22 +277,3 @@ extension MutableCollection where Self: BidirectionalCollection {
rotate(subrange: startIndex..<endIndex, toStartAt: newStart)
}
}
// Deprecations
extension MutableCollection {
@available(*, deprecated, renamed: "rotate(subrange:toStartAt:)")
@discardableResult
public mutating func rotate(
subrange: Range<Index>,
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)
}
}