You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by an...@apache.org on 2007/11/22 01:46:14 UTC

svn commit: r597277 - /lenya/trunk/src/modules/editors/java/src/org/apache/lenya/cms/editors/forms/FormsEditor.java

Author: andreas
Date: Wed Nov 21 16:46:12 2007
New Revision: 597277

URL: http://svn.apache.org/viewvc?rev=597277&view=rev
Log:
Removed unused method from forms editor

Modified:
    lenya/trunk/src/modules/editors/java/src/org/apache/lenya/cms/editors/forms/FormsEditor.java

Modified: lenya/trunk/src/modules/editors/java/src/org/apache/lenya/cms/editors/forms/FormsEditor.java
URL: http://svn.apache.org/viewvc/lenya/trunk/src/modules/editors/java/src/org/apache/lenya/cms/editors/forms/FormsEditor.java?rev=597277&r1=597276&r2=597277&view=diff
==============================================================================
--- lenya/trunk/src/modules/editors/java/src/org/apache/lenya/cms/editors/forms/FormsEditor.java (original)
+++ lenya/trunk/src/modules/editors/java/src/org/apache/lenya/cms/editors/forms/FormsEditor.java Wed Nov 21 16:46:12 2007
@@ -718,35 +718,6 @@
     }
 
     /**
-     * Add namespaces to xupdate statement
-     * @param namespaces The namespaces to add
-     * @param xupdateModifications The Xupdate statement to add namespaces to
-     * @return The Xupdate statement with the added namespaces
-     */
-    private String addHiddenNamespaces(String namespaces, String xupdateModifications) {
-        getLogger().debug("Namespaces: " + namespaces);
-
-        if (namespaces == null) {
-            getLogger().debug("No additional namespaces");
-            return xupdateModifications;
-        }
-
-        String[] namespace = namespaces.split(" ");
-        String ns = "";
-        for (int i = 0; i < namespace.length; i++) {
-            if ((ns.indexOf(namespace[i]) < 0) && (xupdateModifications.indexOf(namespace[i]) < 0)) {
-                ns = ns + " " + namespace[i];
-            } else {
-                getLogger().debug("Redundant namespace: " + namespace[i]);
-            }
-        }
-
-        int endOfFirstNode = xupdateModifications.indexOf(">");
-        return xupdateModifications.substring(0, endOfFirstNode) + " " + ns
-                + xupdateModifications.substring(endOfFirstNode);
-    }
-
-    /**
      * Prefix resolver which uses the usecase parameters like
      * "namespace.xhtml=http://www.w3.org/1999/xhtml" to resolve prefixes.
      */



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