Skip to content

Commit 7d89d62

Browse files
committed
[stdlib] Remove @_specialize attributes obsoleted by explicit type checks
1 parent d00f8ed commit 7d89d62

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

stdlib/public/core/StringBridge.swift

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -791,8 +791,6 @@ extension StringProtocol {
791791
return self.utf16.index(self.utf16.startIndex, offsetBy: offset)
792792
}
793793

794-
@_specialize(where Self == String)
795-
@_specialize(where Self == Substring)
796794
public // SPI(Foundation)
797795
func _toUTF16Offsets(_ indices: Range<Index>) -> Range<Int> {
798796
if Self.self == String.self {
@@ -808,8 +806,6 @@ extension StringProtocol {
808806
return Range(uncheckedBounds: (lower: startOffset, upper: endOffset))
809807
}
810808

811-
@_specialize(where Self == String)
812-
@_specialize(where Self == Substring)
813809
public // SPI(Foundation)
814810
func _toUTF16Indices(_ range: Range<Int>) -> Range<Index> {
815811
if Self.self == String.self {

0 commit comments

Comments
 (0)