aboutsummaryrefslogtreecommitdiffstats
path: root/core/downloadfromdcthread.cpp
diff options
context:
space:
mode:
authorGravatar jan Iversen <jani@libreoffice.org>2018-06-04 18:44:41 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-06-04 10:27:13 -0700
commitefab7e33571a10a69a683839c276bdc0fd56ac12 (patch)
tree941a028c236b4fa7b18e0f102c715225389cff06 /core/downloadfromdcthread.cpp
parent03f30f628160670ad667de3a580510b0008ca5fa (diff)
downloadsubsurface-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.cpp16
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 &currentVendorText)
#endif
return -1;
}
-
-QString DCDeviceData::getDetectedDeviceAddress(const QString &currentProductText)
-{
-#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");
-}