You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by hl...@apache.org on 2008/12/18 02:11:20 UTC

svn commit: r727607 - /tapestry/tapestry5/branches/hlship-5.0-perf/tapestry-core/src/main/java/org/apache/tapestry5/dom/Element.java

Author: hlship
Date: Wed Dec 17 17:11:19 2008
New Revision: 727607

URL: http://svn.apache.org/viewvc?rev=727607&view=rev
Log:
TAP5-417: Tapestry 5.0 Performance Improvements
- Optimize namespace URI to prefix resolution when rendering markup

Modified:
    tapestry/tapestry5/branches/hlship-5.0-perf/tapestry-core/src/main/java/org/apache/tapestry5/dom/Element.java

Modified: tapestry/tapestry5/branches/hlship-5.0-perf/tapestry-core/src/main/java/org/apache/tapestry5/dom/Element.java
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/branches/hlship-5.0-perf/tapestry-core/src/main/java/org/apache/tapestry5/dom/Element.java?rev=727607&r1=727606&r2=727607&view=diff
==============================================================================
--- tapestry/tapestry5/branches/hlship-5.0-perf/tapestry-core/src/main/java/org/apache/tapestry5/dom/Element.java (original)
+++ tapestry/tapestry5/branches/hlship-5.0-perf/tapestry-core/src/main/java/org/apache/tapestry5/dom/Element.java Wed Dec 17 17:11:19 2008
@@ -646,27 +646,4 @@
 
         return holder.getResult();
     }
-
-    /**
-     * Returns the parent elements containing this element, ordered by depth (the root element is first, the current
-     * element's parent is last).
-     *
-     * @return list of elements
-     */
-    private List<Element> gatherParentElements()
-    {
-        List<Element> result = CollectionFactory.newList();
-
-        Element cursor = parent;
-
-        while (cursor != null)
-        {
-            result.add(cursor);
-            cursor = cursor.parent;
-        }
-
-        Collections.reverse(result);
-
-        return result;
-    }
 }