From 5ff56a6d68ce6fbab0980232d95b5d190e2ecdcf Mon Sep 17 00:00:00 2001 From: "arseny.kapoulkine" Date: Sun, 9 May 2010 20:37:49 +0000 Subject: 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 --- src/pugixpath.cpp | 6 ------ 1 file changed, 6 deletions(-) (limited to 'src/pugixpath.cpp') 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()) -- cgit v1.2.3