aboutsummaryrefslogtreecommitdiffstats
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
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>
-rw-r--r--core/downloadfromdcthread.cpp16
-rw-r--r--core/downloadfromdcthread.h1
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 &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");
-}
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 &currentVendorText);
- Q_INVOKABLE QString getDetectedDeviceAddress(const QString &currentProductText);
public slots:
void setVendor(const QString& vendor);