diff --git a/platform/ios/MGLMapboxEvents.m b/platform/ios/MGLMapboxEvents.m index 36ed63d33..67e51158e 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 848b4a051..9c186e4bf 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; } } diff --git a/src/clipper/clipper.cpp b/src/clipper/clipper.cpp index f5d8cd3c9..9741ad7cd 100755 --- a/src/clipper/clipper.cpp +++ b/src/clipper/clipper.cpp @@ -4136,7 +4136,6 @@ void ClipperOffset::DoOffset(double delta) } else { - k = 1; m_sinA = 0; if (node.m_endtype == etOpenSquare) DoSquare(0, 1); diff --git a/src/libtess2/mesh.c b/src/libtess2/mesh.c index 3eb4ad20a..43b442f4b 100755 --- a/src/libtess2/mesh.c +++ b/src/libtess2/mesh.c @@ -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 );