You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ma...@apache.org on 2026/02/04 19:17:35 UTC

(cordova-plugin-inappbrowser) branch pr-remove-unused-method-invertFrameIfNeeded created (now 05bc821)

This is an automated email from the ASF dual-hosted git repository.

manuelbeck pushed a change to branch pr-remove-unused-method-invertFrameIfNeeded
in repository https://gitbox.apache.org/repos/asf/cordova-plugin-inappbrowser.git


      at 05bc821  refactor(ios): remove unused method `invertFrameIfNeeded`

This branch includes the following new commits:

     new 05bc821  refactor(ios): remove unused method `invertFrameIfNeeded`

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


(cordova-plugin-inappbrowser) 01/01: refactor(ios): remove unused method `invertFrameIfNeeded`

Posted by ma...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

manuelbeck pushed a commit to branch pr-remove-unused-method-invertFrameIfNeeded
in repository https://gitbox.apache.org/repos/asf/cordova-plugin-inappbrowser.git

commit 05bc82161c3e604ed3694b477d01d6b44531906c
Author: Manuel Beck <ma...@outlook.de>
AuthorDate: Wed Feb 4 20:17:26 2026 +0100

    refactor(ios): remove unused method `invertFrameIfNeeded`
    
    - This method produced also a warnining in XCode 26: `'statusBarOrientation' is deprecated: first deprecated in iOS 13.0 - Use the interfaceOrientation property of the window scene instead.`
---
 src/ios/CDVInAppBrowserNavigationController.m | 11 -----------
 1 file changed, 11 deletions(-)

diff --git a/src/ios/CDVInAppBrowserNavigationController.m b/src/ios/CDVInAppBrowserNavigationController.m
index 1f811f0..7e312d2 100644
--- a/src/ios/CDVInAppBrowserNavigationController.m
+++ b/src/ios/CDVInAppBrowserNavigationController.m
@@ -33,15 +33,4 @@
     [super viewDidLoad];
 }
 
-- (CGRect)invertFrameIfNeeded:(CGRect)rect
-{
-    if (UIInterfaceOrientationIsLandscape([[UIApplication sharedApplication] statusBarOrientation])) {
-        CGFloat temp = rect.size.width;
-        rect.size.width = rect.size.height;
-        rect.size.height = temp;
-    }
-    rect.origin = CGPointZero;
-    return rect;
-}
-
 @end


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org