Skip to content

Commit 526681a

Browse files
DougGregorairspeedswift
authored andcommitted
[RangeReplaceableCollection] Eliminate unnecessary slicing subscript operator.
1 parent 53b565b commit 526681a

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

stdlib/public/core/RangeReplaceableCollection.swift

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -366,11 +366,6 @@ where SubSequence: RangeReplaceableCollection
366366
//===----------------------------------------------------------------------===//
367367

368368
extension RangeReplaceableCollection {
369-
@_inlineable
370-
public subscript(bounds: Range<Index>) -> Slice<Self> {
371-
return Slice(base: self, bounds: bounds)
372-
}
373-
374369
/// Creates a new collection containing the specified number of a single,
375370
/// repeated value.
376371
///

0 commit comments

Comments
 (0)