You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by db...@apache.org on 2004/08/06 01:30:14 UTC

cvs commit: xml-xalan/c/src/xalanc/XPath MutableNodeRefList.cpp MutableNodeRefList.hpp

dbertoni    2004/08/05 16:30:14

  Modified:    c/src/xalanc/XPath MutableNodeRefList.cpp
                        MutableNodeRefList.hpp
  Log:
  Removed unused member function.
  
  Revision  Changes    Path
  1.7       +0 -48     xml-xalan/c/src/xalanc/XPath/MutableNodeRefList.cpp
  
  Index: MutableNodeRefList.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xalan/c/src/xalanc/XPath/MutableNodeRefList.cpp,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- MutableNodeRefList.cpp	26 Feb 2004 22:40:34 -0000	1.6
  +++ MutableNodeRefList.cpp	5 Aug 2004 23:30:14 -0000	1.7
  @@ -690,52 +690,4 @@
   
   
   
  -void
  -MutableNodeRefList::reverseAssign(MutableNodeRefList&	nodelist) const
  -{
  -	if (&nodelist == this)
  -	{
  -		nodelist.reverse();
  -	}
  -	else
  -	{
  -#if defined(XALAN_STD_VECTOR_HAS_ITERATOR_ASSIGN)
  -		nodelist.m_nodeList.assign(m_nodeList.rbegin(), m_nodeList.rend());
  -#else
  -        nodelist.clear();
  -
  -        assert(size_type(m_nodeList.size()) == m_nodeList.size());
  -
  -		nodelist.reserve(size_type(m_nodeList.size()));
  -
  -		typedef NodeListVectorType::const_reverse_iterator	const_reverse_iterator;
  -
  -		const const_reverse_iterator	theEnd = m_nodeList.rend();
  -		const_reverse_iterator			theCurrent = m_nodeList.rbegin();
  -
  -		while(theCurrent != theEnd)
  -		{
  -			nodelist.m_nodeList.push_back(*theCurrent);
  -
  -			++theCurrent;
  -		}
  -#endif
  -
  -		if (m_order == eDocumentOrder)
  -		{
  -			nodelist.m_order = eReverseDocumentOrder;
  -		}
  -		else if (m_order == eReverseDocumentOrder)
  -		{
  -			nodelist.m_order = eDocumentOrder;
  -		}
  -		else
  -		{
  -			nodelist.m_order = eUnknownOrder;
  -		}
  -	}
  -}
  -
  -
  -
   XALAN_CPP_NAMESPACE_END
  
  
  
  1.5       +0 -8      xml-xalan/c/src/xalanc/XPath/MutableNodeRefList.hpp
  
  Index: MutableNodeRefList.hpp
  ===================================================================
  RCS file: /home/cvs/xml-xalan/c/src/xalanc/XPath/MutableNodeRefList.hpp,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- MutableNodeRefList.hpp	26 Feb 2004 22:40:34 -0000	1.4
  +++ MutableNodeRefList.hpp	5 Aug 2004 23:30:14 -0000	1.5
  @@ -208,14 +208,6 @@
   	reverse();
   
   	/**
  -	 * Assign the nodes in reverse order into the supplied instance.
  -	 *
  -	 * @param nodelist The target node list.
  -	 */
  -	void
  -	reverseAssign(MutableNodeRefList&	nodelist) const;
  -
  -	/**
   	 * Reserve space for the supplied number of nodes.
   	 * This is taken as an optimization, and may be
   	 * ignored.  You might want to call this when you
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org