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

[email protected]
Newsgroups gmane.comp.cms.lenya.cvs
Message-ID <[email protected]>
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.
      */
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.