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/pugixml.hpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'src/pugixml.hpp') diff --git a/src/pugixml.hpp b/src/pugixml.hpp index 8b4a733..83c4ee0 100644 --- a/src/pugixml.hpp +++ b/src/pugixml.hpp @@ -644,7 +644,7 @@ namespace pugi bool as_bool() const; /// \internal Document order or 0 if not set - unsigned int document_order() const; + PUGIXML_DEPRECATED unsigned int document_order() const; public: /** @@ -787,9 +787,6 @@ namespace pugi /// \internal Initializing ctor explicit xml_node(xml_node_struct* p); - /// \internal Precompute document order (valid only for document node) - void precompute_document_order_impl(); - /// \internal Get allocator xml_allocator& get_allocator() const; @@ -1457,7 +1454,7 @@ namespace pugi #endif /// \internal Document order or 0 if not set - unsigned int document_order() const; + PUGIXML_DEPRECATED unsigned int document_order() const; /** * Print subtree to writer @@ -2019,7 +2016,7 @@ namespace pugi * Compute document order for the whole tree * Sometimes this makes evaluation of XPath queries faster. */ - void precompute_document_order(); + PUGIXML_DEPRECATED void precompute_document_order(); }; #ifndef PUGIXML_NO_XPATH -- cgit v1.2.3