summaryrefslogtreecommitdiff
path: root/src/pugixpath.cpp
diff options
context:
space:
mode:
authorarseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640>2010-05-09 20:37:49 +0000
committerarseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640>2010-05-09 20:37:49 +0000
commit5ff56a6d68ce6fbab0980232d95b5d190e2ecdcf (patch)
tree734c2f28e532135fe7a2088be48f98c7b44cc5fd /src/pugixpath.cpp
parente96af87b5dc678a64aad061cc2955eaa463c09a2 (diff)
Removed document order optimization (it helps on a tiny percentage of queries), XPath tests now compute their own order
git-svn-id: http://pugixml.googlecode.com/svn/trunk@400 99668b35-9821-0410-8761-19e4c4f06640
Diffstat (limited to 'src/pugixpath.cpp')
-rw-r--r--src/pugixpath.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/pugixpath.cpp b/src/pugixpath.cpp
index dc25a0e..0059f78 100644
--- a/src/pugixpath.cpp
+++ b/src/pugixpath.cpp
@@ -213,12 +213,6 @@ namespace
{
bool operator()(const xpath_node& lhs, const xpath_node& rhs) const
{
- unsigned int lo = lhs.attribute() ? lhs.attribute().document_order() : lhs.node().document_order();
- unsigned int ro = rhs.attribute() ? rhs.attribute().document_order() : rhs.node().document_order();
-
- if (lo != 0 && ro != 0)
- return lo < ro;
-
xml_node ln = lhs.node(), rn = rhs.node();
if (lhs.attribute() && rhs.attribute())