Skip to content

Commit 93aa6bf

Browse files
Merge pull request #5881 from practicalswift/remove-initializepointer
Remove unused internal struct _InitializePointer<T>
2 parents a08f2f9 + 81e93c7 commit 93aa6bf

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

stdlib/public/core/Arrays.swift.gyb

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1985,21 +1985,6 @@ extension _ArrayBufferProtocol {
19851985
}
19861986
}
19871987

1988-
internal struct _InitializePointer<T> : _PointerFunction {
1989-
internal func call(_ rawMemory: UnsafeMutablePointer<T>, count: Int) {
1990-
_sanityCheck(count == 1)
1991-
// FIXME: it would be better if we could find a way to move, here
1992-
rawMemory.initialize(to: newValue)
1993-
}
1994-
1995-
@_transparent
1996-
internal init(_ newValue: T) {
1997-
self.newValue = newValue
1998-
}
1999-
2000-
internal var newValue: T
2001-
}
2002-
20031988
internal struct _IgnorePointer<T> : _PointerFunction {
20041989
internal func call(_: UnsafeMutablePointer<T>, count: Int) {
20051990
_sanityCheck(count == 0)

0 commit comments

Comments
 (0)