diff --git a/framework/assets/js/app.js b/framework/assets/js/app.js index 61ad3669..66024905 100755 --- a/framework/assets/js/app.js +++ b/framework/assets/js/app.js @@ -58,16 +58,6 @@ App.prototype.clearHistory = function() { PhoneGap.exec(null, null, "App", "clearHistory", []); }; -/** - * Add a class that implements a service. - * - * @param serviceType - * @param className - */ -App.prototype.addService = function(serviceType, className) { - PhoneGap.exec(null, null, "App", "addService", [serviceType, className]); -}; - /** * Override the default behavior of the Android back button. * If overridden, when the back button is pressed, the "backKeyDown" JavaScript event will be fired. diff --git a/framework/assets/js/phonegap.js.base b/framework/assets/js/phonegap.js.base index d1f303bd..f9ec35d2 100755 --- a/framework/assets/js/phonegap.js.base +++ b/framework/assets/js/phonegap.js.base @@ -924,20 +924,4 @@ PhoneGap.includeJavascript = function(jsfile, successCallback) { id.appendChild(el); }; -/** - * This class is provided to bridge the gap between the way plugins were setup in 0.9.3 and 0.9.4. - * Users should be calling navigator.add.addService() instead of PluginManager.addService(). - * @class - * @deprecated - */ -var PluginManager = { - addService: function(serviceType, className) { - try { - navigator.app.addService(serviceType, className); - } catch (e) { - console.log("Error adding service "+serviceType+": "+e); - } - } -}; - } diff --git a/framework/src/com/phonegap/App.java b/framework/src/com/phonegap/App.java index 13aaaee5..d2a35fa9 100755 --- a/framework/src/com/phonegap/App.java +++ b/framework/src/com/phonegap/App.java @@ -43,9 +43,6 @@ public class App extends Plugin { } else if (action.equals("clearHistory")) { this.clearHistory(); - } - else if (action.equals("addService")) { - this.addService(args.getString(0), args.getString(1)); } else if (action.equals("overrideBackbutton")) { this.overrideBackbutton(args.getBoolean(0)); @@ -148,16 +145,6 @@ public class App extends Plugin { ((DroidGap)this.ctx).clearHistory(); } - /** - * Add a class that implements a service. - * - * @param serviceType - * @param className - */ - public void addService(String serviceType, String className) { - this.ctx.addService(serviceType, className); - } - /** * Override the default behavior of the Android back button. * If overridden, when the back button is pressed, the "backKeyDown" JavaScript event will be fired.