diff --git a/stdlib/public/core/Slice.swift b/stdlib/public/core/Slice.swift index 302775433daec..db27e15c7cc6a 100644 --- a/stdlib/public/core/Slice.swift +++ b/stdlib/public/core/Slice.swift @@ -262,20 +262,11 @@ extension Slice: MutableCollection where Base: MutableCollection { extension Slice : Equatable where Base.Element : Equatable { public static func == (lhs: Slice, rhs: Slice) -> Bool { - let lhsCount = lhs.count - if lhsCount != rhs.count { + if lhs.count != rhs.count { return false } // We know that lhs.count == rhs.count, compare element wise. - - for idx in 0..