diff options
Diffstat (limited to 'platform/ios/src/MGLMapView.mm')
-rw-r--r-- | platform/ios/src/MGLMapView.mm | 25 |
1 files changed, 1 insertions, 24 deletions
diff --git a/platform/ios/src/MGLMapView.mm b/platform/ios/src/MGLMapView.mm index 28b3820281..6e2f8a506d 100644 --- a/platform/ios/src/MGLMapView.mm +++ b/platform/ios/src/MGLMapView.mm @@ -1329,30 +1329,7 @@ public: static dispatch_once_t onceToken; dispatch_once(&onceToken, ^{ // No application delegate - - NSString *key; - - switch ([[UIDevice currentDevice] userInterfaceIdiom]) { - case UIUserInterfaceIdiomPhone: - key = @"UISupportedInterfaceOrientations~iphone"; - break; - - case UIUserInterfaceIdiomPad: - key = @"UISupportedInterfaceOrientations~ipad"; - break; - - default: - break; - } - - NSArray *orientations; - - if (key) - orientations = [[NSBundle mainBundle] objectForInfoDictionaryKey:key]; - - if (!orientations) { - orientations = [[NSBundle mainBundle] objectForInfoDictionaryKey:@"UISupportedInterfaceOrientations"]; - } + NSArray *orientations = [[NSBundle mainBundle] objectForInfoDictionaryKey:@"UISupportedInterfaceOrientations"]; // Application's info plist provided supported orientations. if (orientations.count > 0) { |