cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From i..@apache.org
Subject [03/11] android commit: Remove unused Config methods (Breaking Change)
Date Tue, 14 Oct 2014 21:23:50 GMT
Remove unused Config methods (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/01be1f27
Tree: http://git-wip-us.apache.org/repos/asf/cordova-android/tree/01be1f27
Diff: http://git-wip-us.apache.org/repos/asf/cordova-android/diff/01be1f27

Branch: refs/heads/unplug-whitelist
Commit: 01be1f27bed8171a77792b7cbc1c269d5a7d1b5f
Parents: a0cbee0
Author: Ian Clelland <iclelland@chromium.org>
Authored: Thu Oct 9 14:44:09 2014 -0400
Committer: Ian Clelland <iclelland@chromium.org>
Committed: Tue Oct 14 13:48:01 2014 -0400

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


http://git-wip-us.apache.org/repos/asf/cordova-android/blob/01be1f27/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 f13292c..d009037 100644
--- a/framework/src/org/apache/cordova/Config.java
+++ b/framework/src/org/apache/cordova/Config.java
@@ -61,34 +61,6 @@ public class Config {
         parser.getInternalWhitelist().addWhiteListEntry(origin, subdomains);
     }
 
-    /**
-     * Determine if URL is in approved list of URLs to load.
-     *
-     * @param url
-     * @return true if whitelisted
-     */
-    public static boolean isUrlWhiteListed(String url) {
-        if (parser == null) {
-            Log.e(TAG, "Config was not initialised. Did you forget to Config.init(this)?");
-            return false;
-        }
-        return parser.getInternalWhitelist().isUrlWhiteListed(url);
-    }
-
-    /**
-     * Determine if URL is in approved list of URLs to launch external applications.
-     *
-     * @param url
-     * @return true if whitelisted
-     */
-    public static boolean isUrlExternallyWhiteListed(String url) {
-        if (parser == null) {
-            Log.e(TAG, "Config was not initialised. Did you forget to Config.init(this)?");
-            return false;
-        }
-        return parser.getExternalWhitelist().isUrlWhiteListed(url);
-    }
-
     public static String getStartUrl() {
         if (parser == null) {
             return "file:///android_asset/www/index.html";


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


Mime
View raw message