You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by bo...@apache.org on 2012/06/07 22:20:54 UTC

[26/50] [abbrv] android commit: Removing the classes we agreed were not used

Removing the classes we agreed were not used


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

Branch: refs/heads/master
Commit: ad6d71fef36be033d2f67364eabea95b3d5df79b
Parents: 47d99e5
Author: Joe Bowser <bo...@apache.org>
Authored: Wed May 16 14:59:48 2012 -0700
Committer: Joe Bowser <bo...@apache.org>
Committed: Wed May 16 14:59:48 2012 -0700

----------------------------------------------------------------------
 .../src/org/apache/cordova/CordovaException.java   |   28 -------
 .../src/org/apache/cordova/PreferenceNode.java     |   34 --------
 .../src/org/apache/cordova/PreferenceSet.java      |   62 ---------------
 3 files changed, 0 insertions(+), 124 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/blob/ad6d71fe/framework/src/org/apache/cordova/CordovaException.java
----------------------------------------------------------------------
diff --git a/framework/src/org/apache/cordova/CordovaException.java b/framework/src/org/apache/cordova/CordovaException.java
deleted file mode 100755
index 01db3c4..0000000
--- a/framework/src/org/apache/cordova/CordovaException.java
+++ /dev/null
@@ -1,28 +0,0 @@
-/*
-       Licensed to the Apache Software Foundation (ASF) under one
-       or more contributor license agreements.  See the NOTICE file
-       distributed with this work for additional information
-       regarding copyright ownership.  The ASF licenses this file
-       to you under the Apache License, Version 2.0 (the
-       "License"); you may not use this file except in compliance
-       with the License.  You may obtain a copy of the License at
-
-         http://www.apache.org/licenses/LICENSE-2.0
-
-       Unless required by applicable law or agreed to in writing,
-       software distributed under the License is distributed on an
-       "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-       KIND, either express or implied.  See the License for the
-       specific language governing permissions and limitations
-       under the License.
-*/
-
-package org.apache.cordova;
-
-public class CordovaException extends Exception {
-
-    /**
-     * 
-     */
-    private static final long serialVersionUID = 1373339564758328799L;
-}

http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/blob/ad6d71fe/framework/src/org/apache/cordova/PreferenceNode.java
----------------------------------------------------------------------
diff --git a/framework/src/org/apache/cordova/PreferenceNode.java b/framework/src/org/apache/cordova/PreferenceNode.java
deleted file mode 100644
index d577df1..0000000
--- a/framework/src/org/apache/cordova/PreferenceNode.java
+++ /dev/null
@@ -1,34 +0,0 @@
-/*
-       Licensed to the Apache Software Foundation (ASF) under one
-       or more contributor license agreements.  See the NOTICE file
-       distributed with this work for additional information
-       regarding copyright ownership.  The ASF licenses this file
-       to you under the Apache License, Version 2.0 (the
-       "License"); you may not use this file except in compliance
-       with the License.  You may obtain a copy of the License at
-
-         http://www.apache.org/licenses/LICENSE-2.0
-
-       Unless required by applicable law or agreed to in writing,
-       software distributed under the License is distributed on an
-       "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-       KIND, either express or implied.  See the License for the
-       specific language governing permissions and limitations
-       under the License.
-*/
-package org.apache.cordova;
-
-// represents the <preference> element from the W3C config.xml spec
-// see http://www.w3.org/TR/widgets/#the-preference-element-and-its-attributes
-public class PreferenceNode {
-    public String name;
-    public String value;
-    public boolean readonly;
-
-    // constructor
-    public PreferenceNode(String name, String value, boolean readonly) {
-        this.name = name;
-        this.value = value;
-        this.readonly = readonly;
-    }
-}

http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/blob/ad6d71fe/framework/src/org/apache/cordova/PreferenceSet.java
----------------------------------------------------------------------
diff --git a/framework/src/org/apache/cordova/PreferenceSet.java b/framework/src/org/apache/cordova/PreferenceSet.java
deleted file mode 100644
index 9321955..0000000
--- a/framework/src/org/apache/cordova/PreferenceSet.java
+++ /dev/null
@@ -1,62 +0,0 @@
-/*
-       Licensed to the Apache Software Foundation (ASF) under one
-       or more contributor license agreements.  See the NOTICE file
-       distributed with this work for additional information
-       regarding copyright ownership.  The ASF licenses this file
-       to you under the Apache License, Version 2.0 (the
-       "License"); you may not use this file except in compliance
-       with the License.  You may obtain a copy of the License at
-
-         http://www.apache.org/licenses/LICENSE-2.0
-
-       Unless required by applicable law or agreed to in writing,
-       software distributed under the License is distributed on an
-       "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-       KIND, either express or implied.  See the License for the
-       specific language governing permissions and limitations
-       under the License.
-*/
-package org.apache.cordova;
-
-import java.util.HashSet;
-
-import org.apache.cordova.PreferenceNode;
-
-
-public class PreferenceSet {
-    private HashSet<PreferenceNode> innerSet;
-
-    public PreferenceSet() {
-        this.innerSet = new HashSet<PreferenceNode>();
-    }
-
-    public void add(PreferenceNode node) {
-        this.innerSet.add(node);
-    }
-
-    public int size() {
-        return this.innerSet.size();
-    }
-
-    public void clear() {
-        this.innerSet.clear();
-    }
-
-    public String pref(String prefName) {
-        for (PreferenceNode n : innerSet)
-            if (prefName.equals(n.name))
-                return n.value;
-
-        return null;
-    }
-
-    public boolean prefMatches(String prefName, String prefValue) {
-        String value = pref(prefName);
-
-        if (value == null) {
-            return false;
-        } else {
-            return value.equals(prefValue);
-        }
-    }
-}