aboutsummaryrefslogtreecommitdiffstats
path: root/src/direct_bt/DBTAdapter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/direct_bt/DBTAdapter.cpp')
-rw-r--r--src/direct_bt/DBTAdapter.cpp19
1 files changed, 0 insertions, 19 deletions
diff --git a/src/direct_bt/DBTAdapter.cpp b/src/direct_bt/DBTAdapter.cpp
index fb488408..a54ae3f1 100644
--- a/src/direct_bt/DBTAdapter.cpp
+++ b/src/direct_bt/DBTAdapter.cpp
@@ -605,25 +605,6 @@ bool DBTAdapter::mgmtEvDeviceConnectedCB(std::shared_ptr<MgmtEvent> e) {
return true;
}
-void DBTAdapter::performDeviceConnected(std::shared_ptr<DBTDevice> device, uint64_t timestamp) {
- DBG_PRINT("DBTAdapter::performDeviceConnected(dev_id %d): %s", dev_id, device->toString().c_str());
- addConnectedDevice(device); // track it
- device->notifyConnected();
- int i=0;
- for_each_idx_mtx(mtx_statusListenerList, statusListenerList, [&](std::shared_ptr<AdapterStatusListener> &l) {
- try {
- if( l->matchDevice(*device) ) {
- l->deviceConnected(device, timestamp);
- }
- } catch (std::exception &e) {
- ERR_PRINT("DBTAdapter::performDeviceConnected-CBs %d/%zd: %s of %s: Caught exception %s",
- i+1, statusListenerList.size(),
- l->toString().c_str(), device->toString().c_str(), e.what());
- }
- i++;
- });
-}
-
bool DBTAdapter::mgmtEvDeviceDisconnectedCB(std::shared_ptr<MgmtEvent> e) {
const MgmtEvtDeviceDisconnected &event = *static_cast<const MgmtEvtDeviceDisconnected *>(e.get());
std::shared_ptr<DBTDevice> device = findConnectedDevice(event.getAddress());