diff options
Diffstat (limited to 'ble/Bluetooth.cpp')
-rw-r--r-- | ble/Bluetooth.cpp | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/ble/Bluetooth.cpp b/ble/Bluetooth.cpp index b672dba..14a8cda 100644 --- a/ble/Bluetooth.cpp +++ b/ble/Bluetooth.cpp @@ -208,23 +208,7 @@ BluetoothSystem::~BluetoothSystem() { shutdown(); } -/* -map<int, LinuxBluetoothAdapter *> adapters; - -BluetoothAdapter &getAdapter(int hciDevice) { - map<int, LinuxBluetoothAdapter *>::iterator it = adapters.find(hciDevice); - - if (it == adapters.end()) { - LinuxBluetoothAdapter *adapter = new LinuxBluetoothAdapter(hciDevice); - adapters[hciDevice] = adapter; - return *adapter; - } - - return *it->second; -} -*/ - -BluetoothAdapter &getAdapter(int hciDevice) { +shared_ptr<BluetoothAdapter> getAdapter(int hciDevice) { return getAdapterImpl(hciDevice); } |