@@ -906,7 +906,6 @@ public func checkOneLevelOfRandomAccessCollection<
906
906
//===------------------------------------------------------------------===//
907
907
908
908
let succ = { collection. index ( after: $0) }
909
- let pred = { collection. index ( before: $0) }
910
909
// Advances up to 1 positions without passing endIndex. Don't use
911
910
// advanced(by: n) to do this because it's under test here.
912
911
let next = { $0 == collection. endIndex ? $0 : succ ( $0) }
@@ -924,7 +923,6 @@ public func checkOneLevelOfRandomAccessCollection<
924
923
let count : Distance = collection. count
925
924
let offset0 = min ( 5 , count)
926
925
let offset1 = min ( 10 , count)
927
- let offset2 = min ( 15 , count)
928
926
929
927
let distanceCandidates : [ Distance ] = [
930
928
- 11 , - 7 , - 5 , - 3 , - 2 , - 1 , 0 , 1 , 2 , 3 , 5 , 7 , 11 ]
@@ -1676,7 +1674,6 @@ public func checkOneLevelOfRandomAccessCollection<
1676
1674
//===------------------------------------------------------------------===//
1677
1675
1678
1676
let succ = { collection. index ( after: $0) }
1679
- let pred = { collection. index ( before: $0) }
1680
1677
// Advances up to 1 positions without passing endIndex. Don't use
1681
1678
// advanced(by: n) to do this because it's under test here.
1682
1679
let next = { $0 == collection. endIndex ? $0 : succ ( $0) }
@@ -1694,7 +1691,6 @@ public func checkOneLevelOfRandomAccessCollection<
1694
1691
let count : Distance = collection. count
1695
1692
let offset0 = min ( 5 , count)
1696
1693
let offset1 = min ( 10 , count)
1697
- let offset2 = min ( 15 , count)
1698
1694
1699
1695
let distanceCandidates : [ Distance ] = [
1700
1696
- 11 , - 7 , - 5 , - 3 , - 2 , - 1 , 0 , 1 , 2 , 3 , 5 , 7 , 11 ]
@@ -1871,7 +1867,7 @@ public func checkRangeReplaceable<C, N>(
1871
1867
let source = Array < A . Element > ( makeCollection ( ) )
1872
1868
1873
1869
for (ix, i) in source. indices. enumerated ( ) {
1874
- for (jx_, j ) in ( i..< source. endIndex) . enumerated ( ) {
1870
+ for (jx_, _ ) in ( i..< source. endIndex) . enumerated ( ) {
1875
1871
let jx = jx_ + ix
1876
1872
1877
1873
let oldCount = jx - ix
0 commit comments