[stdlib] Remove the Grand Renaming artifacts of Swift 3 era

This commit is contained in:
Maxim Moiseev
2017-08-25 15:44:32 -07:00
committed by Max Moiseev
parent 0bae2e5aa6
commit ee5fb33656
54 changed files with 1 additions and 1551 deletions

View File

@@ -457,87 +457,3 @@ ${orderingExplanation}
}
}
}
//===--- Unavailable stuff ------------------------------------------------===//
extension MutableCollection where Self : RandomAccessCollection {
@available(*, unavailable, message: "call partition(by:)")
public mutating func partition(
isOrderedBefore: (Element, Element) -> Bool
) -> Index {
Builtin.unreachable()
}
@available(*, unavailable, message: "slice the collection using the range, and call partition(by:)")
public mutating func partition(
_ range: Range<Index>,
isOrderedBefore: (Element, Element) -> Bool
) -> Index {
Builtin.unreachable()
}
}
extension MutableCollection
where Self : RandomAccessCollection, Element : Comparable {
@available(*, unavailable, message: "call partition(by:)")
public mutating func partition() -> Index {
Builtin.unreachable()
}
@available(*, unavailable, message: "slice the collection using the range, and call partition(by:)")
public mutating func partition(_ range: Range<Index>) -> Index {
Builtin.unreachable()
}
}
extension Sequence {
@available(*, unavailable, renamed: "sorted(by:)")
public func sort(
_ isOrderedBefore: (Element, Element) -> Bool
) -> [Element] {
Builtin.unreachable()
}
}
extension Sequence where Element : Comparable {
@available(*, unavailable, renamed: "sorted()")
public func sort() -> [Element] {
Builtin.unreachable()
}
}
extension MutableCollection
where
Self : RandomAccessCollection, Element : Comparable {
@available(*, unavailable, renamed: "sort()")
public mutating func sortInPlace() {
Builtin.unreachable()
}
}
extension MutableCollection where Self : RandomAccessCollection {
@available(*, unavailable, renamed: "sort(by:)")
public mutating func sortInPlace(
_ isOrderedBefore: (Element, Element) -> Bool
) {
Builtin.unreachable()
}
}
extension Collection where Element : Equatable {
@available(*, unavailable, renamed: "index(of:)")
public func indexOf(_ element: Element) -> Index? {
Builtin.unreachable()
}
}
extension Collection {
@available(*, unavailable, renamed: "index(where:)")
public func indexOf(
_ predicate: (Element) throws -> Bool
) rethrows -> Index? {
Builtin.unreachable()
}
}