         }
         return false
     }
-
-    /// Closes the virtual output ports, if created one already.
-    ///
-    /// - Returns: Returns true if virtual outputs closed.
-    ///
-    @discardableResult public func destroyVirtualOutputPort() -> Bool {
-        if virtualOutputs != [0] {
-            for (index, virtualOutput) in virtualOutputs.enumerated().reversed() {
-                guard MIDIEndpointDispose(virtualOutput) == noErr else {return false}
-                virtualOutputs.remove(at: index)
-            }
-            virtualOutputs.append(0)
-            return true
-        }
-        return false
-    }
 }
 
 #endif

        }
    }

    /// Create virtual MIDI output ports
    /// - Parameters:
    ///   - count: Number of ports to create
    ///   - uniqueIDs: Optional list of IDs

    /// - Returns: Returns true if virtual inputs closed.
    ///
    @discardableResult public func destroyVirtualInputPort() -> Bool {
        if virtualOutputs != [0] {
            for (index, virtualOutput) in virtualOutputs.enumerated().reversed() {
                guard MIDIEndpointDispose(virtualOutput) == noErr else {return false}
                virtualOutputs.remove(at: index)
            }
            virtualOutputs.append(0)
            return true
        }
        return false
    }

    /// Closes the virtual output ports, if created one already.
    ///
    /// - Returns: Returns true if virtual outputs closed.
    ///
    @discardableResult public func destroyVirtualOutputPort() -> Bool {
        if virtualInputs != [0] {
            for (index, virtualInput) in virtualInputs.enumerated().reversed() {
                guard MIDIEndpointDispose(virtualInput) == noErr else {return false}
