Skip to content

Commit 752423b

Browse files
committed
[String] Remove dead code and decls
1 parent f56b098 commit 752423b

File tree

3 files changed

+0
-50
lines changed

3 files changed

+0
-50
lines changed

stdlib/public/SDK/Foundation/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ add_swift_target_library(swiftFoundation ${SWIFT_SDK_OVERLAY_LIBRARY_BUILD_TYPES
1414
DateComponents.swift
1515
DateInterval.swift
1616
Decimal.swift
17-
ExtraStringAPIs.swift
1817
FileManager.swift
1918
Foundation.swift
2019
IndexPath.swift

stdlib/public/SDK/Foundation/ExtraStringAPIs.swift

Lines changed: 0 additions & 32 deletions
This file was deleted.

stdlib/public/core/StringUTF16View.swift

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -200,23 +200,6 @@ extension String {
200200
public init(_ utf16: UTF16View) {
201201
self.init(utf16._guts)
202202
}
203-
204-
#if _runtime(_ObjC)
205-
// These may become less important once <rdar://problem/19255291> is addressed.
206-
@available(
207-
*, unavailable,
208-
message: "Indexing a String's UTF16View requires a String.UTF16View.Index, which can be constructed from Int when Foundation is imported")
209-
public subscript(i: Int) -> UTF16.CodeUnit {
210-
Builtin.unreachable()
211-
}
212-
213-
@available(
214-
*, unavailable,
215-
message: "Slicing a String's UTF16View requires a Range<String.UTF16View.Index>, String.UTF16View.Index can be constructed from Int when Foundation is imported")
216-
public subscript(bounds: Range<Int>) -> UTF16View {
217-
Builtin.unreachable()
218-
}
219-
#endif
220203
}
221204

222205
// Index conversions

0 commit comments

Comments
 (0)