Fixed dead store analyzer warnings
These values weren’t being used for anything.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4136,7 +4136,6 @@ void ClipperOffset::DoOffset(double delta)
|
||||
}
|
||||
else
|
||||
{
|
||||
k = 1;
|
||||
m_sinA = 0;
|
||||
if (node.m_endtype == etOpenSquare)
|
||||
DoSquare(0, 1);
|
||||
|
||||
@@ -794,7 +794,6 @@ void tessMeshCheckMesh( TESSmesh *mesh )
|
||||
TESSvertex *v, *vPrev;
|
||||
TESShalfEdge *e, *ePrev;
|
||||
|
||||
fPrev = fHead;
|
||||
for( fPrev = fHead ; (f = fPrev->next) != fHead; fPrev = f) {
|
||||
assert( f->prev == fPrev );
|
||||
e = f->anEdge;
|
||||
@@ -809,7 +808,6 @@ void tessMeshCheckMesh( TESSmesh *mesh )
|
||||
}
|
||||
assert( f->prev == fPrev && f->anEdge == NULL );
|
||||
|
||||
vPrev = vHead;
|
||||
for( vPrev = vHead ; (v = vPrev->next) != vHead; vPrev = v) {
|
||||
assert( v->prev == vPrev );
|
||||
e = v->anEdge;
|
||||
@@ -824,7 +822,6 @@ void tessMeshCheckMesh( TESSmesh *mesh )
|
||||
}
|
||||
assert( v->prev == vPrev && v->anEdge == NULL );
|
||||
|
||||
ePrev = eHead;
|
||||
for( ePrev = eHead ; (e = ePrev->next) != eHead; ePrev = e) {
|
||||
assert( e->Sym->next == ePrev->Sym );
|
||||
assert( e->Sym != e );
|
||||
|
||||
Reference in New Issue
Block a user