You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ia...@apache.org on 2014/10/14 23:23:52 UTC

[05/11] android commit: Remove another unused Config method (Breaking Change)

Remove another unused Config method (Breaking Change)


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

Branch: refs/heads/unplug-whitelist
Commit: af1518d3c83f7b511d05a2e9840b60c43552d04f
Parents: 4c6777e
Author: Ian Clelland <ic...@chromium.org>
Authored: Thu Oct 9 15:23:07 2014 -0400
Committer: Ian Clelland <ic...@chromium.org>
Committed: Tue Oct 14 13:48:27 2014 -0400

----------------------------------------------------------------------
 framework/src/org/apache/cordova/Config.java | 14 --------------
 1 file changed, 14 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-android/blob/af1518d3/framework/src/org/apache/cordova/Config.java
----------------------------------------------------------------------
diff --git a/framework/src/org/apache/cordova/Config.java b/framework/src/org/apache/cordova/Config.java
index 1df7fd2..f261b78 100644
--- a/framework/src/org/apache/cordova/Config.java
+++ b/framework/src/org/apache/cordova/Config.java
@@ -46,20 +46,6 @@ public class Config {
             parser = new ConfigXmlParser();
         }
     }
-    
-    /**
-     * Add entry to approved list of URLs (whitelist)
-     *
-     * @param origin        URL regular expression to allow
-     * @param subdomains    T=include all subdomains under origin
-     */
-    public static void addWhiteListEntry(String origin, boolean subdomains) {
-        if (parser == null) {
-            Log.e(TAG, "Config was not initialised. Did you forget to Config.init(this)?");
-            return;
-        }
-        parser.getInternalWhitelist().addWhiteListEntry(origin, subdomains);
-    }
 
     public static String getStartUrl() {
         if (parser == null) {


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