xalan-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dbert...@apache.org
Subject cvs commit: xml-xalan/c/src/XSLT XSLTEngineImpl.cpp XSLTEngineImpl.hpp XSLTProcessor.hpp
Date Fri, 27 Sep 2002 23:31:38 GMT
dbertoni    2002/09/27 16:31:38

  Modified:    c/src/XSLT XSLTEngineImpl.cpp XSLTEngineImpl.hpp
                        XSLTProcessor.hpp
  Log:
  Removed unused code and data members.
  
  Revision  Changes    Path
  1.159     +3 -29     xml-xalan/c/src/XSLT/XSLTEngineImpl.cpp
  
  Index: XSLTEngineImpl.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xalan/c/src/XSLT/XSLTEngineImpl.cpp,v
  retrieving revision 1.158
  retrieving revision 1.159
  diff -u -r1.158 -r1.159
  --- XSLTEngineImpl.cpp	26 Sep 2002 05:14:43 -0000	1.158
  +++ XSLTEngineImpl.cpp	27 Sep 2002 23:31:38 -0000	1.159
  @@ -169,8 +169,6 @@
   			XPathFactory&		xpathFactory) :
   	XSLTProcessor(),
   	PrefixResolver(),
  -	m_useDOMResultTreeFactory(false),
  -	m_domResultTreeFactory(0),
   	m_resultNameSpacePrefix(),
   	m_resultNameSpaceURL(),
   	m_xpathFactory(xpathFactory),
  @@ -214,12 +212,6 @@
   	m_stylesheetLocatorStack.clear();
   	m_cdataStack.clear();
   
  -	if (m_domResultTreeFactory != 0)
  -	{
  -		m_parserLiaison.destroyDocument(m_domResultTreeFactory);
  -		m_domResultTreeFactory = 0;
  -	}
  -
   	m_stylesheetRoot = 0;
   
   	m_outputContextStack.reset();
  @@ -678,8 +670,6 @@
   
   	if(fragIndex == 0)
   	{
  -		diag("Locating stylesheet from fragment identifier...");
  -
   		const XalanDOMString	fragID(localXSLURLString, 1);
   
   		const XalanElement*		nsNode = 0;
  @@ -841,6 +831,7 @@
   		else
   		{
   			stylesheetDoc = 0;
  +
   			error("Node pointed to by fragment identifier was not an element: " + fragID);
   		}
   	}
  @@ -1741,13 +1732,13 @@
   		}
   	}
   
  -	XalanDOMString&		thePendingElementName = getPendingElementNameImpl();
  -
   	if(getHasPendingStartDocument() == true && getMustFlushPendingStartDocument()
== true)
   	{
   		startDocument();
   	}
   
  +	XalanDOMString&		thePendingElementName = getPendingElementNameImpl();
  +
   	if(0 != length(thePendingElementName) && getMustFlushPendingStartDocument() ==
true)
   	{
   		assert(getFormatterListener() != 0);
  @@ -3249,23 +3240,6 @@
   	} while(getResultNamespaceForPrefix(m_scratchString) != 0);
   
   	append(theValue, m_scratchString);
  -}
  -
  -
  -
  -XalanDocument*
  -XSLTEngineImpl::getDOMFactory() const
  -{
  -	if(m_domResultTreeFactory == 0)
  -	{
  -#if defined(XALAN_NO_MUTABLE)
  -		((XSLTEngineImpl*)this)->m_domResultTreeFactory = m_parserLiaison.createDOMFactory();
  -#else
  -		m_domResultTreeFactory = m_parserLiaison.createDOMFactory();
  -#endif
  -	}
  -
  -	return m_domResultTreeFactory;
   }
   
   
  
  
  
  1.96      +0 -17     xml-xalan/c/src/XSLT/XSLTEngineImpl.hpp
  
  Index: XSLTEngineImpl.hpp
  ===================================================================
  RCS file: /home/cvs/xml-xalan/c/src/XSLT/XSLTEngineImpl.hpp,v
  retrieving revision 1.95
  retrieving revision 1.96
  diff -u -r1.95 -r1.96
  --- XSLTEngineImpl.hpp	24 Sep 2002 05:59:38 -0000	1.95
  +++ XSLTEngineImpl.hpp	27 Sep 2002 23:31:38 -0000	1.96
  @@ -1093,13 +1093,6 @@
   	reset();
   
   	/**
  -	 * Get a DOM document, primarily for creating result 
  -	 * tree fragments.
  -	 */
  -	virtual XalanDocument*
  -	getDOMFactory() const;
  -
  -	/**
   	 * Retrieve the XPath environment support object
   	 *
   	 * @return XPath environment support object
  @@ -1438,16 +1431,6 @@
   	{
   		m_outputContextStack.getFormatterListener() = flistener;
   	}
  -
  -	/**
  -	 * If true, build DOM-based result tree fragments.
  -	 */
  -	bool					m_useDOMResultTreeFactory;
  -
  -	/**
  -	 * The factory that will be used to create DOM-based result tree fragments.
  -	 */
  -	mutable XalanDocument*	m_domResultTreeFactory;
   
   	/**
   	 * The namespace that the result tree conforms to.  A null value 
  
  
  
  1.30      +0 -8      xml-xalan/c/src/XSLT/XSLTProcessor.hpp
  
  Index: XSLTProcessor.hpp
  ===================================================================
  RCS file: /home/cvs/xml-xalan/c/src/XSLT/XSLTProcessor.hpp,v
  retrieving revision 1.29
  retrieving revision 1.30
  diff -u -r1.29 -r1.30
  --- XSLTProcessor.hpp	10 Jul 2002 00:43:01 -0000	1.29
  +++ XSLTProcessor.hpp	27 Sep 2002 23:31:38 -0000	1.30
  @@ -197,14 +197,6 @@
   	reset() = 0;
     
   	/**
  -	 * Get a factory for creating new target nodes.
  -	 *
  -	 * @return The factory
  -	 */
  -	virtual XalanDocument*
  -	getDOMFactory() const = 0;
  -
  -	/**
   	 * Given an input source, get the source tree.
   	 *
   	 * @param inputSource pointer to input source
  
  
  

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


Mime
View raw message