From 2f4d4142540d9ad4ba7810c990983b99d4c1b089 Mon Sep 17 00:00:00 2001 From: David Grove Date: Thu, 22 Sep 2016 13:45:23 -0400 Subject: [PATCH] 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. --- src/swift/Wrapper.swift | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/swift/Wrapper.swift b/src/swift/Wrapper.swift index ea340e20c..eb4209a77 100644 --- a/src/swift/Wrapper.swift +++ b/src/swift/Wrapper.swift @@ -105,10 +105,6 @@ public class DispatchIO : DispatchObject { __wrapped = dispatch_io_create_with_io(__type, io.__wrapped, queue.__wrapped, handler) } - internal init(queue:dispatch_queue_t) { - __wrapped = queue - } - deinit { _swift_dispatch_release(wrapped()) }