From efab7e33571a10a69a683839c276bdc0fd56ac12 Mon Sep 17 00:00:00 2001 From: jan Iversen Date: Mon, 4 Jun 2018 18:44:41 +0200 Subject: core: remove unused function getDetectedDeviceAddress() getDetectedDeviceAddress is not used in mobile or desktop version Signed-off-by: Jan Iversen --- core/downloadfromdcthread.cpp | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'core/downloadfromdcthread.cpp') 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 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"); -} -- cgit v1.2.3-70-g09d2