You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by sh...@apache.org on 2013/03/14 21:35:55 UTC

ios commit: [CB-2194] Remove deprecated - iOS - CDVCommandDelegate registerPlugin method

Updated Branches:
  refs/heads/master b694e3c7b -> 8e4a7aefd


[CB-2194] Remove deprecated - iOS - CDVCommandDelegate registerPlugin method


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

Branch: refs/heads/master
Commit: 8e4a7aefdbd8f45615a532dfdbc3648bd250fb50
Parents: b694e3c
Author: Shazron Abdullah <sh...@apache.org>
Authored: Thu Mar 14 13:35:48 2013 -0700
Committer: Shazron Abdullah <sh...@apache.org>
Committed: Thu Mar 14 13:35:48 2013 -0700

----------------------------------------------------------------------
 CordovaLib/Classes/CDVCommandDelegate.h     |    1 -
 CordovaLib/Classes/CDVCommandDelegateImpl.m |    5 -----
 2 files changed, 0 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/8e4a7aef/CordovaLib/Classes/CDVCommandDelegate.h
----------------------------------------------------------------------
diff --git a/CordovaLib/Classes/CDVCommandDelegate.h b/CordovaLib/Classes/CDVCommandDelegate.h
index e177c63..0401136 100644
--- a/CordovaLib/Classes/CDVCommandDelegate.h
+++ b/CordovaLib/Classes/CDVCommandDelegate.h
@@ -30,7 +30,6 @@
 
 - (NSString*)pathForResource:(NSString*)resourcepath;
 - (id)getCommandInstance:(NSString*)pluginName;
-- (void)registerPlugin:(CDVPlugin*)plugin withClassName:(NSString*)className CDV_DEPRECATED(2.2, "Use CDVViewController to register plugins, or use config.xml.");
 
 // Plugins should not be using this interface to call other plugins since it
 // will result in bogus callbacks being made.

http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/8e4a7aef/CordovaLib/Classes/CDVCommandDelegateImpl.m
----------------------------------------------------------------------
diff --git a/CordovaLib/Classes/CDVCommandDelegateImpl.m b/CordovaLib/Classes/CDVCommandDelegateImpl.m
index 5197cb5..9fcc674 100644
--- a/CordovaLib/Classes/CDVCommandDelegateImpl.m
+++ b/CordovaLib/Classes/CDVCommandDelegateImpl.m
@@ -121,11 +121,6 @@
     return [_viewController getCommandInstance:pluginName];
 }
 
-- (void)registerPlugin:(CDVPlugin*)plugin withClassName:(NSString*)className
-{
-    [_viewController registerPlugin:plugin withClassName:className];
-}
-
 - (void)runInBackground:(void (^)())block
 {
     dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), block);