From 4f2379a2d30eda0b4352a28f6dd17f07e8bfc2ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Wed, 22 May 2024 00:24:36 +0200 Subject: [PATCH] Remove obsolete code path --- ios/ViewController.mm | 7 ------- 1 file changed, 7 deletions(-) diff --git a/ios/ViewController.mm b/ios/ViewController.mm index 10dd5bf70d..6a0232b62d 100644 --- a/ios/ViewController.mm +++ b/ios/ViewController.mm @@ -325,12 +325,6 @@ extern float g_safeInsetBottom; [self shutdown]; } -// For iOS before 6.0 -- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation -{ - return UIInterfaceOrientationIsLandscape(toInterfaceOrientation); -} - // For iOS 6.0 and up - (NSUInteger)supportedInterfaceOrientations { @@ -346,7 +340,6 @@ extern float g_safeInsetBottom; - (void)touchX:(float)x y:(float)y code:(int)code pointerId:(int)pointerId { float scale = [UIScreen mainScreen].scale; - if ([[UIScreen mainScreen] respondsToSelector:@selector(nativeScale)]) { scale = [UIScreen mainScreen].nativeScale; }