Fixed dead store analyzer warnings

These values weren’t being used for anything.
This commit is contained in:
Minh Nguyễn
2015-05-05 11:41:02 -04:00
parent ec241d17ff
commit 900d140f23
4 changed files with 0 additions and 22 deletions

View File

@@ -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

View File

@@ -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;
}
}

View File

@@ -4136,7 +4136,6 @@ void ClipperOffset::DoOffset(double delta)
}
else
{
k = 1;
m_sinA = 0;
if (node.m_endtype == etOpenSquare)
DoSquare(0, 1);

View File

@@ -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 );