diff options
Diffstat (limited to 'src/pugixpath.cpp')
-rw-r--r-- | src/pugixpath.cpp | 6 |
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())
|