Skip to content

Commit 3f74b45

Browse files
dgrove-ossdas
authored andcommitted
remove unused/incorrect internal init from DispatchIO
DispatchIO should not have an internal init(dispatch_queue_t) that stores a dispatch_queue_t into a field of type dispatch_io_t. Bug is only in the wrapping (Linux) overlay; not in Dispatch.apinotes. Signed-off-by: Daniel A. Steffen <dsteffen@apple.com>
1 parent 2290d48 commit 3f74b45

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/swift/Wrapper.swift

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,10 +105,6 @@ public class DispatchIO : DispatchObject {
105105
__wrapped = dispatch_io_create_with_io(__type, io.__wrapped, queue.__wrapped, handler)
106106
}
107107

108-
internal init(queue:dispatch_queue_t) {
109-
__wrapped = queue
110-
}
111-
112108
deinit {
113109
_swift_dispatch_release(wrapped())
114110
}

0 commit comments

Comments
 (0)