#1346 - Removing allFrameworks iteration search for the bundle as it's not needed now

This commit is contained in:
Brad Leege
2015-04-27 10:55:12 -04:00
parent ad1cc3f1ad
commit 86e90da6d5

View File

@@ -140,14 +140,7 @@ NSString *const MGLEventGestureRotateStart = @"Rotation";
// Load Local Copy of Server's Public Key
NSString *cerPath = nil;
NSArray *bundles = [NSBundle allFrameworks];
for (int lc = 0; lc < bundles.count; lc++) {
NSBundle *b = [bundles objectAtIndex:lc];
cerPath = [[NSBundle bundleForClass:[MGLMapboxEvents class]] pathForResource:@"api_mapbox_com-geotrust" ofType:@"der"];
if (cerPath != nil) {
break;
}
}
cerPath = [[NSBundle bundleForClass:[MGLMapboxEvents class]] pathForResource:@"api_mapbox_com-geotrust" ofType:@"der"];
if (cerPath != nil) {
_geoTrustCert = [NSData dataWithContentsOfFile:cerPath];
}