You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by st...@apache.org on 2013/06/20 23:34:28 UTC

[13/35] ios commit: updated view controller

updated view controller


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

Branch: refs/heads/3.0.0
Commit: 165b8bea08e9288eca276f0af0cc6e8e3bf16144
Parents: eb64bf3
Author: Steven Gill <st...@gmail.com>
Authored: Mon Jun 10 18:23:37 2013 -0700
Committer: Steven Gill <st...@gmail.com>
Committed: Thu Jun 20 14:23:51 2013 -0700

----------------------------------------------------------------------
 CordovaLib/Classes/CDVViewController.m | 5 -----
 1 file changed, 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/165b8bea/CordovaLib/Classes/CDVViewController.m
----------------------------------------------------------------------
diff --git a/CordovaLib/Classes/CDVViewController.m b/CordovaLib/Classes/CDVViewController.m
index 94f4552..b186326 100644
--- a/CordovaLib/Classes/CDVViewController.m
+++ b/CordovaLib/Classes/CDVViewController.m
@@ -262,7 +262,6 @@
 
     // /////////////////
 
-    NSNumber* enableLocation = [self.settings objectForKey:@"EnableLocation"];
     NSString* enableViewportScale = [self.settings objectForKey:@"EnableViewportScale"];
     NSNumber* allowInlineMediaPlayback = [self.settings objectForKey:@"AllowInlineMediaPlayback"];
     BOOL mediaPlaybackRequiresUserAction = YES;  // default value
@@ -280,10 +279,6 @@
      * Fire up the GPS Service right away as it takes a moment for data to come back.
      */
 
-    if ([enableLocation boolValue]) {
-        NSLog(@"Deprecated: The 'EnableLocation' boolean property is deprecated in 2.5.0, and will be removed in 3.0.0. Use the 'onload' boolean attribute (of the CDVLocation plugin.");
-        [[self.commandDelegate getCommandInstance:@"Geolocation"] getLocation:[CDVInvokedUrlCommand new]];
-    }
 
     if (hideKeyboardFormAccessoryBar) {
         __weak CDVViewController* weakSelf = self;