summaryrefslogtreecommitdiff
path: root/platform
diff options
context:
space:
mode:
authorMinh Nguyễn <mxn@1ec5.org>2015-05-05 11:41:02 -0400
committerMinh Nguyễn <mxn@1ec5.org>2015-05-05 11:41:02 -0400
commit900d140f23b28c56ab01fc227b5cf74a71e81650 (patch)
tree1b6051cc1b9c7827934b72bd9fc1a1b26d511725 /platform
parentec241d17ff4600899a7da9bce1074341e30a6a71 (diff)
downloadqtlocation-mapboxgl-900d140f23b28c56ab01fc227b5cf74a71e81650.tar.gz
Fixed dead store analyzer warnings
These values weren’t being used for anything.
Diffstat (limited to 'platform')
-rw-r--r--platform/ios/MGLMapboxEvents.m1
-rw-r--r--platform/ios/MGLMetricsLocationManager.m17
2 files changed, 0 insertions, 18 deletions
diff --git a/platform/ios/MGLMapboxEvents.m b/platform/ios/MGLMapboxEvents.m
index 36ed63d334..67e51158e2 100644
--- a/platform/ios/MGLMapboxEvents.m
+++ b/platform/ios/MGLMapboxEvents.m
@@ -699,7 +699,6 @@ NSString *const MGLEventGestureRotateStart = @"Rotation";
if([challenge.protectionSpace.authenticationMethod isEqualToString:NSURLAuthenticationMethodServerTrust]) {
SecTrustRef serverTrust = [[challenge protectionSpace] serverTrust];
- NSString *domain = [[challenge protectionSpace] host];
SecTrustResultType trustResult;
// Validate the certificate chain with the device's trust store anyway
diff --git a/platform/ios/MGLMetricsLocationManager.m b/platform/ios/MGLMetricsLocationManager.m
index 848b4a051d..9c186e4bf8 100644
--- a/platform/ios/MGLMetricsLocationManager.m
+++ b/platform/ios/MGLMetricsLocationManager.m
@@ -89,34 +89,17 @@
}
- (void)locationManager:(CLLocationManager *)manager didChangeAuthorizationStatus:(CLAuthorizationStatus)status {
- NSString *newStatus = nil;
switch (status) {
- case kCLAuthorizationStatusNotDetermined:
- newStatus = @"User Hasn't Determined Yet";
- break;
- case kCLAuthorizationStatusRestricted:
- newStatus = @"Restricted and Can't Be Changed By User";
- break;
case kCLAuthorizationStatusDenied:
- newStatus = @"User Explcitly Denied";
[self stopUpdatingLocation];
[self stopMonitoringVisits];
break;
case kCLAuthorizationStatusAuthorized:
- newStatus = @"User Has Authorized / Authorized Always";
- [self startUpdatingLocation];
- [self startMonitoringVisits];
- break;
-// case kCLAuthorizationStatusAuthorizedAlways:
-// newStatus = @"Not Determined";
-// break;
case kCLAuthorizationStatusAuthorizedWhenInUse:
- newStatus = @"User Has Authorized When In Use Only";
[self startUpdatingLocation];
[self startMonitoringVisits];
break;
default:
- newStatus = @"Unknown";
break;
}
}