cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From shaz...@apache.org
Subject [3/3] ios commit: Removed unused code in CDVViewController
Date Tue, 21 Apr 2015 21:48:16 GMT
Removed unused code in CDVViewController


Project: http://git-wip-us.apache.org/repos/asf/cordova-ios/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-ios/commit/952b5692
Tree: http://git-wip-us.apache.org/repos/asf/cordova-ios/tree/952b5692
Diff: http://git-wip-us.apache.org/repos/asf/cordova-ios/diff/952b5692

Branch: refs/heads/4.0.x
Commit: 952b56925f40a86a6c9249a34ddf0614a1de66bb
Parents: dfeeeef
Author: Shazron Abdullah <shazron@apache.org>
Authored: Tue Apr 21 00:27:06 2015 -0700
Committer: Shazron Abdullah <shazron@apache.org>
Committed: Tue Apr 21 00:27:06 2015 -0700

----------------------------------------------------------------------
 CordovaLib/Classes/Public/CDVViewController.m | 36 +---------------------
 1 file changed, 1 insertion(+), 35 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/952b5692/CordovaLib/Classes/Public/CDVViewController.m
----------------------------------------------------------------------
diff --git a/CordovaLib/Classes/Public/CDVViewController.m b/CordovaLib/Classes/Public/CDVViewController.m
index b34676c..f323710 100644
--- a/CordovaLib/Classes/Public/CDVViewController.m
+++ b/CordovaLib/Classes/Public/CDVViewController.m
@@ -28,8 +28,6 @@
 #import "CDVHandleOpenURL.h"
 #import "CDVCommandDelegateImpl.h"
 
-#define degreesToRadian(x) (M_PI * (x) / 180.0)
-
 @interface CDVViewController () {
     NSInteger _userAgentLockToken;
 }
@@ -112,16 +110,6 @@
     return self;
 }
 
-- (void)viewWillAppear:(BOOL)animated
-{
-    [super viewWillAppear:animated];
-}
-
-- (void)viewWillDisappear:(BOOL)animated
-{
-    [super viewWillDisappear:animated];
-}
-
 - (void)printVersion
 {
     NSLog(@"Apache Cordova native platform version %@ is starting.", CDV_VERSION);
@@ -268,8 +256,6 @@
 {
     [super viewDidLoad];
 
-    // // Fix the iOS 5.1 SECURITY_ERR bug (CB-347), this must be before the webView is instantiated
////
-
     NSString* backupWebStorageType = @"cloud"; // default value
 
     id backupWebStorage = [self.settings cordovaSettingForKey:@"BackupWebStorage"];
@@ -291,7 +277,7 @@
 
     /*
      * Fire up CDVLocalStorage to work-around WebKit storage limitations: on all iOS 5.1+
versions for local-only backups, but only needed on iOS 5.1 for cloud backup.
-        With minimum iOS 6/7 supported, only first clause applies.
+        With minimum iOS 7/8 supported, only first clause applies.
      */
     if ([backupWebStorageType isEqualToString:@"local"]) {
         NSString* localStorageFeatureName = @"localstorage";
@@ -367,26 +353,6 @@
     return result;
 }
 
-- (NSInteger)mapIosOrientationToJsOrientation:(UIInterfaceOrientation)orientation
-{
-    switch (orientation) {
-        case UIInterfaceOrientationPortraitUpsideDown:
-            return 180;
-
-        case UIInterfaceOrientationLandscapeLeft:
-            return -90;
-
-        case UIInterfaceOrientationLandscapeRight:
-            return 90;
-
-        case UIInterfaceOrientationPortrait:
-            return 0;
-
-        default:
-            return 0;
-    }
-}
-
 - (BOOL)shouldAutorotate
 {
     return YES;


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


Mime
View raw message