Skip to content

Commit 6476c1f

Browse files
committed
Don't bother trying to predict pointer conversion usage
1 parent 02f5af0 commit 6476c1f

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

Sources/Testing/Expectations/ExpectationContext.swift

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -561,9 +561,6 @@ extension __ExpectationContext.__ImplicitlyPointerConvertible where Self: Collec
561561
let resultPointer = UnsafeMutableBufferPointer<Element>.allocate(capacity: count)
562562
let initializedEnd = resultPointer.initialize(fromContentsOf: self)
563563

564-
if expectationContext.temporaryPointerCleanup.capacity == 0 {
565-
expectationContext.temporaryPointerCleanup.reserveCapacity(4)
566-
}
567564
expectationContext.temporaryPointerCleanup.append {
568565
resultPointer[..<initializedEnd].deinitialize()
569566
resultPointer.deallocate()

0 commit comments

Comments
 (0)