From a55942290c1a4928d34dc705df364a2ad30a491e Mon Sep 17 00:00:00 2001 From: Alsey Coleman Miller Date: Tue, 14 May 2019 23:01:19 -0500 Subject: [PATCH] Removed `HostController.address` --- Sources/BluetoothLinux/HostController.swift | 6 ------ 1 file changed, 6 deletions(-) diff --git a/Sources/BluetoothLinux/HostController.swift b/Sources/BluetoothLinux/HostController.swift index 3e2f799..83e6e81 100644 --- a/Sources/BluetoothLinux/HostController.swift +++ b/Sources/BluetoothLinux/HostController.swift @@ -26,9 +26,6 @@ public final class HostController: BluetoothHostControllerInterface { /// The device identifier of the Bluetooth controller. public let identifier: Identifier - /// The Bluetooth Address of the controller. - public let address: BluetoothAddress - // MARK: - Internal Properties internal let internalSocket: CInt @@ -36,7 +33,6 @@ public final class HostController: BluetoothHostControllerInterface { // MARK: - Initizalization deinit { - close(internalSocket) } @@ -44,7 +40,6 @@ public final class HostController: BluetoothHostControllerInterface { public init(identifier: Identifier) throws { self.identifier = identifier - self.address = try BluetoothAddress(deviceIdentifier: identifier) self.internalSocket = try HCIOpenDevice(identifier) } @@ -55,7 +50,6 @@ public final class HostController: BluetoothHostControllerInterface { else { throw Error.adapterNotFound } self.identifier = deviceIdentifier - self.address = address self.internalSocket = try HCIOpenDevice(deviceIdentifier) } }