diff options
Diffstat (limited to 'core')
-rw-r--r-- | core/downloadfromdcthread.cpp | 16 | ||||
-rw-r--r-- | core/downloadfromdcthread.h | 1 |
2 files changed, 0 insertions, 17 deletions
diff --git a/core/downloadfromdcthread.cpp b/core/downloadfromdcthread.cpp index 4c1343bbc..39d31d726 100644 --- a/core/downloadfromdcthread.cpp +++ b/core/downloadfromdcthread.cpp @@ -438,19 +438,3 @@ int DCDeviceData::getDetectedProductIndex(const QString ¤tVendorText) #endif return -1; } - -QString DCDeviceData::getDetectedDeviceAddress(const QString ¤tProductText) -{ -#if defined(BT_SUPPORT) - // Pull the vendor from the found devices that are possible real dive computers - // HACK: this assumes that dive computer names are unique across vendors - // and will only give you the first of multiple identically named dive computers - QList<BTDiscovery::btVendorProduct> btDCs = BTDiscovery::instance()->getBtDcs(); - BTDiscovery::btVendorProduct btDC; - Q_FOREACH(btDC, btDCs) { - if (currentProductText.startsWith(dc_descriptor_get_product(btDC.dcDescriptor))) - return btDC.btpdi.address; - } -#endif - return QStringLiteral("cannot determine address of dive computer"); -} diff --git a/core/downloadfromdcthread.h b/core/downloadfromdcthread.h index f5ed438cf..f36676943 100644 --- a/core/downloadfromdcthread.h +++ b/core/downloadfromdcthread.h @@ -52,7 +52,6 @@ public: Q_INVOKABLE int getDetectedVendorIndex(); Q_INVOKABLE int getDetectedProductIndex(const QString ¤tVendorText); - Q_INVOKABLE QString getDetectedDeviceAddress(const QString ¤tProductText); public slots: void setVendor(const QString& vendor); |