Skip to content

Commit 1fd2689

Browse files
committed
Remove Span._checkIndex overload
1 parent 2b072a5 commit 1fd2689

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

stdlib/public/core/Span/Span.swift

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -444,16 +444,6 @@ extension Span where Element: ~Copyable {
444444

445445
@available(SwiftStdlib 6.1, *)
446446
extension Span where Element: BitwiseCopyable {
447-
@_semantics("fixed_storage.check_index")
448-
@inline(__always)
449-
@_alwaysEmitIntoClient
450-
internal func _checkIndex(_ position: Index) {
451-
_precondition(
452-
UInt(bitPattern: position) < UInt(bitPattern: _count),
453-
"Index out of bounds"
454-
)
455-
}
456-
457447
/// Accesses the element at the specified position in the `Span`.
458448
///
459449
/// - Parameter position: The offset of the element to access. `position`

0 commit comments

Comments
 (0)