summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--core/btdiscovery.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/core/btdiscovery.cpp b/core/btdiscovery.cpp
index c054b822f..0e071c207 100644
--- a/core/btdiscovery.cpp
+++ b/core/btdiscovery.cpp
@@ -398,15 +398,6 @@ void BTDiscovery::discoverAddress(QString address)
QString btAddress;
btAddress = extractBluetoothAddress(address);
-#if defined(Q_OS_MACOS)
- // macOS appears to need a fresh scan if we want to switch devices
- static QString lastAddress;
- if (lastAddress != address) {
- btDeviceInfo.clear();
- discoveryAgent->stop();
- lastAddress = address;
- }
-#endif
if (!btDeviceInfo.keys().contains(address) && !discoveryAgent->isActive()) {
qDebug() << "restarting discovery agent";
discoveryAgent->start();