aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--api/direct_bt/DBTAdapter.hpp1
-rw-r--r--src/direct_bt/DBTAdapter.cpp19
2 files changed, 0 insertions, 20 deletions
diff --git a/api/direct_bt/DBTAdapter.hpp b/api/direct_bt/DBTAdapter.hpp
index f4642023..fbb1fab4 100644
--- a/api/direct_bt/DBTAdapter.hpp
+++ b/api/direct_bt/DBTAdapter.hpp
@@ -205,7 +205,6 @@ namespace direct_bt {
void startDiscoveryBackground();
void sendDeviceUpdated(std::string cause, std::shared_ptr<DBTDevice> device, uint64_t timestamp, EIRDataType updateMask);
- void performDeviceConnected(std::shared_ptr<DBTDevice> device, uint64_t timestamp);
public:
const BTMode btMode;
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());