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:
@@ -66,7 +66,7 @@ StringTests.test("AssociatedTypes-UTF8View") {
|
||||
iteratorType: View.Iterator.self,
|
||||
subSequenceType: Substring.UTF8View.self,
|
||||
indexType: View.Index.self,
|
||||
indicesType: DefaultBidirectionalIndices<View>.self)
|
||||
indicesType: DefaultIndices<View>.self)
|
||||
}
|
||||
|
||||
StringTests.test("AssociatedTypes-UTF16View") {
|
||||
@@ -86,7 +86,7 @@ StringTests.test("AssociatedTypes-UnicodeScalarView") {
|
||||
iteratorType: View.Iterator.self,
|
||||
subSequenceType: Substring.UnicodeScalarView.self,
|
||||
indexType: View.Index.self,
|
||||
indicesType: DefaultBidirectionalIndices<View>.self)
|
||||
indicesType: DefaultIndices<View>.self)
|
||||
}
|
||||
|
||||
StringTests.test("AssociatedTypes-CharacterView") {
|
||||
@@ -96,7 +96,7 @@ StringTests.test("AssociatedTypes-CharacterView") {
|
||||
iteratorType: IndexingIterator<View>.self,
|
||||
subSequenceType: View.self,
|
||||
indexType: View.Index.self,
|
||||
indicesType: DefaultBidirectionalIndices<View>.self)
|
||||
indicesType: DefaultIndices<View>.self)
|
||||
}
|
||||
|
||||
func checkUnicodeScalarViewIteration(
|
||||
|
||||
Reference in New Issue
Block a user