Skip to content

Commit

Permalink
Merge pull request swiftlang#1723 from natecook1000/nc-sort-dedeprecate
Browse files Browse the repository at this point in the history
[stdlib] Remove unavailable annotation for MutableCollection.sort()
  • Loading branch information
gribozavr committed Mar 18, 2016
2 parents c6fce1d + afac511 commit ceae4de
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions stdlib/public/core/CollectionAlgorithms.swift.gyb
Original file line number Diff line number Diff line change
Expand Up @@ -319,22 +319,6 @@ extension MutableCollection
}
}

% for Self in [ 'Sequence', 'MutableCollection' ]:
extension ${Self} where Self.Iterator.Element : Comparable {
@available(*, unavailable, renamed: "sorted")
public func sort() -> [Iterator.Element] {
fatalError("unavailable function can't be called")
}

@available(*, unavailable, renamed: "sorted(isOrderedBefore:)")
public func sort(
@noescape isOrderedBefore: (Iterator.Element, Iterator.Element) -> Bool
) -> [Iterator.Element] {
fatalError("unavailable function can't be called")
}
}
%end

extension MutableCollection
where
Self.Index : RandomAccessIndex,
Expand Down

0 comments on commit ceae4de

Please sign in to comment.