cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From shaz...@apache.org
Subject [1/3] ios commit: Removed javascriptAlert and applicationDocumentsDirectory helper code.
Date Tue, 21 Apr 2015 21:48:14 GMT
Repository: cordova-ios
Updated Branches:
  refs/heads/4.0.x a2e842d05 -> 952b56925


Removed javascriptAlert and applicationDocumentsDirectory helper code.


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

Branch: refs/heads/4.0.x
Commit: 31716dc7e8d6214414745daa6ccf6ea12490d81c
Parents: a2e842d
Author: Shazron Abdullah <shazron@apache.org>
Authored: Tue Apr 21 00:21:54 2015 -0700
Committer: Shazron Abdullah <shazron@apache.org>
Committed: Tue Apr 21 00:21:54 2015 -0700

----------------------------------------------------------------------
 CordovaLib/Classes/Public/CDVViewController.h |  2 --
 CordovaLib/Classes/Public/CDVViewController.m | 17 -----------------
 2 files changed, 19 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/31716dc7/CordovaLib/Classes/Public/CDVViewController.h
----------------------------------------------------------------------
diff --git a/CordovaLib/Classes/Public/CDVViewController.h b/CordovaLib/Classes/Public/CDVViewController.h
index 0ad1c89..d3fdcc8 100644
--- a/CordovaLib/Classes/Public/CDVViewController.h
+++ b/CordovaLib/Classes/Public/CDVViewController.h
@@ -64,13 +64,11 @@
 @property (nonatomic, readwrite, copy) NSString* baseUserAgent;
 
 + (NSDictionary*)getBundlePlist:(NSString*)plistName;
-+ (NSString*)applicationDocumentsDirectory;
 
 - (void)printMultitaskingInfo;
 - (void)createGapView;
 - (UIView*)newCordovaViewWithFrame:(CGRect)bounds;
 
-- (void)javascriptAlert:(NSString*)text;
 - (NSString*)appURLScheme;
 
 - (NSArray*)parseInterfaceOrientations:(NSArray*)orientations;

http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/31716dc7/CordovaLib/Classes/Public/CDVViewController.m
----------------------------------------------------------------------
diff --git a/CordovaLib/Classes/Public/CDVViewController.m b/CordovaLib/Classes/Public/CDVViewController.m
index d880c84..8fe8553 100644
--- a/CordovaLib/Classes/Public/CDVViewController.m
+++ b/CordovaLib/Classes/Public/CDVViewController.m
@@ -739,23 +739,6 @@
     return NO;
 }
 
-#pragma mark GapHelpers
-
-- (void)javascriptAlert:(NSString*)text
-{
-    NSString* jsString = [NSString stringWithFormat:@"alert('%@');", text];
-
-    [self.commandDelegate evalJs:jsString];
-}
-
-+ (NSString*)applicationDocumentsDirectory
-{
-    NSArray* paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask,
YES);
-    NSString* basePath = (([paths count] > 0) ? ([paths objectAtIndex:0]) : nil);
-
-    return basePath;
-}
-
 #pragma mark CordovaCommands
 
 - (void)registerPlugin:(CDVPlugin*)plugin withClassName:(NSString*)className


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


Mime
View raw message