diff options
author | jan Iversen <jani@libreoffice.org> | 2018-06-04 18:44:41 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2018-06-04 10:27:13 -0700 |
commit | efab7e33571a10a69a683839c276bdc0fd56ac12 (patch) | |
tree | 941a028c236b4fa7b18e0f102c715225389cff06 /core/downloadfromdcthread.cpp | |
parent | 03f30f628160670ad667de3a580510b0008ca5fa (diff) | |
download | subsurface-efab7e33571a10a69a683839c276bdc0fd56ac12.tar.gz |
core: remove unused function getDetectedDeviceAddress()
getDetectedDeviceAddress is not used in mobile or desktop version
Signed-off-by: Jan Iversen <jani@apache.org>
Diffstat (limited to 'core/downloadfromdcthread.cpp')
-rw-r--r-- | core/downloadfromdcthread.cpp | 16 |
1 files changed, 0 insertions, 16 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"); -} |