mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[stdlib] Cleanup DefaultIndices, delete dead code (#13952)
* Remove a bunch of Default(Bidirectional|RandomAccess)Indices usage from stdlib and test * Remove some DefaultRandomAccessIndices and IndexDistance usage from Foundation * Remove no-longer-used internal type in Existentials.swift * Get rid of indicesForTraversal
This commit is contained in:
@@ -656,7 +656,7 @@ public struct IndexSet : ReferenceConvertible, Equatable, BidirectionalCollectio
|
||||
}
|
||||
|
||||
/// For a positive delta, shifts the indexes in [index, INT_MAX] to the right, thereby inserting an "empty space" [index, delta], for a negative delta, shifts the indexes in [index, INT_MAX] to the left, thereby deleting the indexes in the range [index - delta, delta].
|
||||
public mutating func shift(startingAt integer: Element, by delta: IndexSet.IndexDistance) {
|
||||
public mutating func shift(startingAt integer: Element, by delta: Int) {
|
||||
_applyMutation { $0.shiftIndexesStarting(at: integer, by: delta) }
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user