summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2020-11-16 22:45:55 +0100
committerSven Gothel <[email protected]>2020-11-16 22:45:55 +0100
commit66ab546e5aeaa1f360fb01eec762fc408dbb1dfc (patch)
tree3623a6adc15caee39f8304f53cd709eca44fd894
parent5a8f3859c924feef243dada15cf8186104ed7d09 (diff)
DBTDevice::hciSMPMsgCallback(): Remove dead-code case do_disconnect
-rw-r--r--src/direct_bt/DBTDevice.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/direct_bt/DBTDevice.cpp b/src/direct_bt/DBTDevice.cpp
index cefb9a3b..4516cc9b 100644
--- a/src/direct_bt/DBTDevice.cpp
+++ b/src/direct_bt/DBTDevice.cpp
@@ -468,7 +468,6 @@ void DBTDevice::hciSMPMsgCallback(std::shared_ptr<DBTDevice> sthis, std::shared_
SMPPairingState pstate = old_pstate;
PairingMode pmode = old_pmode;
bool is_device_ready = false;
- bool do_disconnect = false;
const SMPPDUMsg::Opcode opc = msg->getOpcode();
@@ -582,9 +581,6 @@ void DBTDevice::hciSMPMsgCallback(std::shared_ptr<DBTDevice> sthis, std::shared_
if( is_device_ready ) {
std::thread dc(&DBTDevice::processDeviceReady, this, sthis, msg->ts_creation); // @suppress("Invalid arguments")
dc.detach();
- } else if( do_disconnect ) {
- std::thread dc(&DBTDevice::disconnect, this, HCIStatusCode::AUTHENTICATION_FAILURE); // @suppress("Invalid arguments")
- dc.detach();
}
}