summaryrefslogtreecommitdiffstats
path: root/src/bluetooth/darwin/btledeviceinquiry.mm
diff options
context:
space:
mode:
authorTimur Pocheptsov <timur.pocheptsov@qt.io>2019-10-15 14:13:18 +0200
committerTimur Pocheptsov <timur.pocheptsov@qt.io>2019-10-20 20:56:12 +0200
commit8475d40d80eb3dac1b881410785c7276f839f0c8 (patch)
tree5f219a5a209eb90d73e60a050a78e7a28c615d1f /src/bluetooth/darwin/btledeviceinquiry.mm
parentc0678181cd1a573c0e8af8e7c4e82c9fd03aa6cf (diff)
CoreBluetooth: get rid of outdated ifdefs
SDK >= 10.13 is required now, so we can get rid of ifdefs/dead code (old, deprecated constants). Change-Id: I98e8e22e1d707ccfc93c18773fb371767ea82f49 Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
Diffstat (limited to 'src/bluetooth/darwin/btledeviceinquiry.mm')
-rw-r--r--src/bluetooth/darwin/btledeviceinquiry.mm8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/bluetooth/darwin/btledeviceinquiry.mm b/src/bluetooth/darwin/btledeviceinquiry.mm
index b3f29035..0f9f02b8 100644
--- a/src/bluetooth/darwin/btledeviceinquiry.mm
+++ b/src/bluetooth/darwin/btledeviceinquiry.mm
@@ -220,11 +220,7 @@ QT_USE_NAMESPACE
[manager scanForPeripheralsWithServices:nil options:nil];
} // Else we ignore.
-#if QT_IOS_PLATFORM_SDK_EQUAL_OR_ABOVE(__IPHONE_10_0) || QT_OSX_PLATFORM_SDK_EQUAL_OR_ABOVE(__MAC_10_13)
} else if (state == CBManagerStateUnsupported || state == CBManagerStateUnauthorized) {
-#else
- } else if (state == CBCentralManagerStateUnsupported || state == CBCentralManagerStateUnauthorized) {
-#endif
if (internalState == InquiryActive) {
[self stopScanSafe];
// Not sure how this is possible at all,
@@ -237,11 +233,7 @@ QT_USE_NAMESPACE
}
[manager setDelegate:nil];
-#if QT_IOS_PLATFORM_SDK_EQUAL_OR_ABOVE(__IPHONE_10_0) || QT_OSX_PLATFORM_SDK_EQUAL_OR_ABOVE(__MAC_10_13)
} else if (state == CBManagerStatePoweredOff) {
-#else
- } else if (state == CBCentralManagerStatePoweredOff) {
-#endif
#ifndef Q_OS_MACOS
if (internalState == InquiryStarting) {