@@ -504,12 +504,6 @@ extension Span where Element: ~Copyable {
504
504
return _extracting ( unchecked: bounds)
505
505
}
506
506
507
- @_disallowFeatureSuppression ( NonescapableTypes)
508
- @_alwaysEmitIntoClient
509
- public mutating func _shrink( to bounds: Range < Index > ) {
510
- self = _extracting ( bounds)
511
- }
512
-
513
507
/// Constructs a new span over the items within the supplied range of
514
508
/// positions within this span.
515
509
///
@@ -533,13 +527,6 @@ extension Span where Element: ~Copyable {
533
527
return Span ( _unchecked: _pointer? . advanced ( by: delta) , count: bounds. count)
534
528
}
535
529
536
- @_disallowFeatureSuppression ( NonescapableTypes)
537
- @unsafe
538
- @_alwaysEmitIntoClient
539
- public mutating func _shrink( toUnchecked bounds: Range < Index > ) {
540
- self = _extracting ( unchecked: bounds)
541
- }
542
-
543
530
/// Constructs a new span over the items within the supplied range of
544
531
/// positions within this span.
545
532
///
@@ -559,12 +546,6 @@ extension Span where Element: ~Copyable {
559
546
_extracting ( bounds. relative ( to: indices) )
560
547
}
561
548
562
- @_disallowFeatureSuppression ( NonescapableTypes)
563
- @_alwaysEmitIntoClient
564
- public mutating func _shrink( to bounds: some RangeExpression < Int > ) {
565
- self = _extracting ( bounds)
566
- }
567
-
568
549
/// Constructs a new span over the items within the supplied range of
569
550
/// positions within this span.
570
551
///
@@ -589,13 +570,6 @@ extension Span where Element: ~Copyable {
589
570
_extracting ( unchecked: bounds. relative ( to: indices) )
590
571
}
591
572
592
- @_disallowFeatureSuppression ( NonescapableTypes)
593
- @unsafe
594
- @_alwaysEmitIntoClient
595
- public mutating func _shrink( toUnchecked bounds: some RangeExpression < Int > ) {
596
- self = _extracting ( uncheckedBounds: bounds)
597
- }
598
-
599
573
/// Constructs a new span over all the items of this span.
600
574
///
601
575
/// The returned span's first item is always at offset 0; unlike buffer
@@ -736,12 +710,6 @@ extension Span where Element: ~Copyable {
736
710
return Self ( _unchecked: _pointer, count: newCount)
737
711
}
738
712
739
- @_disallowFeatureSuppression ( NonescapableTypes)
740
- @_alwaysEmitIntoClient
741
- public mutating func _shrink( toFirst maxLength: Int ) {
742
- self = _extracting ( first: maxLength)
743
- }
744
-
745
713
/// Returns a span over all but the given number of trailing elements.
746
714
///
747
715
/// If the number of elements to drop exceeds the number of elements in
@@ -764,12 +732,6 @@ extension Span where Element: ~Copyable {
764
732
return Self ( _unchecked: _pointer, count: count&- droppedCount)
765
733
}
766
734
767
- @_disallowFeatureSuppression ( NonescapableTypes)
768
- @_alwaysEmitIntoClient
769
- public mutating func _shrink( droppingLast k: Int ) {
770
- self = _extracting ( droppingLast: k)
771
- }
772
-
773
735
/// Returns a span containing the final elements of the span,
774
736
/// up to the given maximum length.
775
737
///
@@ -794,12 +756,6 @@ extension Span where Element: ~Copyable {
794
756
return Self ( _unchecked: newStart, count: newCount)
795
757
}
796
758
797
- @_disallowFeatureSuppression ( NonescapableTypes)
798
- @_alwaysEmitIntoClient
799
- public mutating func _shrink( toLast maxLength: Int ) {
800
- self = _extracting ( last: maxLength)
801
- }
802
-
803
759
/// Returns a span over all but the given number of initial elements.
804
760
///
805
761
/// If the number of elements to drop exceeds the number of elements in
@@ -822,10 +778,4 @@ extension Span where Element: ~Copyable {
822
778
let newStart = _pointer? . advanced ( by: droppedCount*MemoryLayout< Element> . stride)
823
779
return Self ( _unchecked: newStart, count: count&- droppedCount)
824
780
}
825
-
826
- @_disallowFeatureSuppression ( NonescapableTypes)
827
- @_alwaysEmitIntoClient
828
- public mutating func _shrink( droppingFirst k: Int ) {
829
- self = _extracting ( droppingFirst: k)
830
- }
831
781
}
0 commit comments