diff options
author | Julian Rex <julian.rex@mapbox.com> | 2019-02-11 12:25:10 -0500 |
---|---|---|
committer | Julian Rex <julian.rex@mapbox.com> | 2019-02-11 12:25:10 -0500 |
commit | f95eac52acb299c0869d4fd0bb79b076022a3ea2 (patch) | |
tree | d3cb26be0314e24a3e57768186aeec863d0404e1 | |
parent | ec63e684de9d280d5b5652d58c6542f76d590a77 (diff) | |
download | qtlocation-mapboxgl-upstream/jrex/layoutsubviews-device-rotation.tar.gz |
Removed redundant checks for iphone/ipad. This is handled by the system.upstream/jrex/layoutsubviews-device-rotation
-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) { |