Remove unused popFirst() method

The method has been implemented in the standard library.
This commit is contained in:
David Dufresne
2016-09-24 16:10:14 -04:00
parent 1eaec786d2
commit ff48dda700

View File

@@ -8,18 +8,6 @@
public extension RangeReplaceableCollection {
/// If `!self.isEmpty`, remove the first element and return it, otherwise
/// return `nil`.
///
/// - returns: The fhe first element of `self` or `nil`.
public mutating func popFirst() -> Iterator.Element? {
guard !isEmpty else { return nil }
return removeFirst()
}
/// Prepend `newElement` to the collection.
///
/// - parameter newElement: New element to prepend to the collection.