dbertoni 02/04/06 11:36:51
Modified: c/src/XalanSourceTree XalanSourceTreeDocument.cpp
XalanSourceTreeDocument.hpp
XalanSourceTreeParserLiaison.cpp
XalanSourceTreeParserLiaison.hpp
Log:
Removed broken document numbering code.
Revision Changes Path
1.28 +0 -10
xml-xalan/c/src/XalanSourceTree/XalanSourceTreeDocument.cpp
Index: XalanSourceTreeDocument.cpp
===================================================================
RCS file:
/home/cvs/xml-xalan/c/src/XalanSourceTree/XalanSourceTreeDocument.cpp,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -r1.27 -r1.28
--- XalanSourceTreeDocument.cpp 23 Feb 2002 04:20:15 -0000 1.27
+++ XalanSourceTreeDocument.cpp 6 Apr 2002 19:36:51 -0000 1.28
@@ -85,7 +85,6 @@
XalanSourceTreeDocument::XalanSourceTreeDocument(
- unsigned long theNumber,
bool fPoolAllText,
block_size_type theNamesStringPoolBlockSize,
bucket_count_type theNamesStringPoolBucketCount,
@@ -94,7 +93,6 @@
bucket_count_type theValuesStringPoolBucketCount,
bucket_size_type theValuesStringPoolBucketSize) :
XalanDocument(),
- m_number(theNumber),
m_firstChild(0),
m_documentElement(0),
m_attributeAllocator(200),
@@ -543,14 +541,6 @@
{
return (*i).second;
}
-}
-
-
-
-unsigned long
-XalanSourceTreeDocument::getNumber() const
-{
- return m_number;
}
1.16 +0 -7
xml-xalan/c/src/XalanSourceTree/XalanSourceTreeDocument.hpp
Index: XalanSourceTreeDocument.hpp
===================================================================
RCS file:
/home/cvs/xml-xalan/c/src/XalanSourceTree/XalanSourceTreeDocument.hpp,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -r1.15 -r1.16
--- XalanSourceTreeDocument.hpp 23 Feb 2002 03:18:19 -0000 1.15
+++ XalanSourceTreeDocument.hpp 6 Apr 2002 19:36:51 -0000 1.16
@@ -158,7 +158,6 @@
*
* Constructor for XalanSourceTreeDocument.
*
- * @param theNumber The number of the document.
* @param fPoolAllText If false, text node data that is not whitespace
will not be pooled.
* @param theNamesStringPoolBlockSize The block size for allocating
strings in the name pool
* @param theNamesStringPoolBucketCount The number of buckets for
allocating strings in the name pool
@@ -169,7 +168,6 @@
*
*/
XalanSourceTreeDocument(
- unsigned long theNumber,
bool fPoolAllText = true,
block_size_type theNamesStringPoolBlockSize =
eDefaultNamesStringPoolBlockSize,
bucket_count_type theNamesStringPoolBucketCount =
eDefaultNamesStringPoolBucketCount,
@@ -332,9 +330,6 @@
virtual XalanElement*
getElementById(const XalanDOMString& elementId) const;
- virtual unsigned long
- getNumber() const;
-
// Interfaces not inherited from XalanDocument...
@@ -485,8 +480,6 @@
// Data members...
- const unsigned long
m_number;
-
XalanNode*
m_firstChild;
XalanSourceTreeElement*
m_documentElement;
1.27 +3 -14
xml-xalan/c/src/XalanSourceTree/XalanSourceTreeParserLiaison.cpp
Index: XalanSourceTreeParserLiaison.cpp
===================================================================
RCS file:
/home/cvs/xml-xalan/c/src/XalanSourceTree/XalanSourceTreeParserLiaison.cpp,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -r1.26 -r1.27
--- XalanSourceTreeParserLiaison.cpp 23 Feb 2002 04:20:15 -0000 1.26
+++ XalanSourceTreeParserLiaison.cpp 6 Apr 2002 19:36:51 -0000 1.27
@@ -226,9 +226,7 @@
XalanSourceTreeParserLiaison::XalanSourceTreeParserLiaison(
- XalanSourceTreeDOMSupport& /* theSupport */,
- DocumentNumberType
theStartingNumber) :
- m_documentNumber(theStartingNumber),
+ XalanSourceTreeDOMSupport& /* theSupport */) :
m_xercesParserLiaison(),
m_documentMap(),
m_persistentDocumentMap(),
@@ -238,8 +236,7 @@
-XalanSourceTreeParserLiaison::XalanSourceTreeParserLiaison(DocumentNumberType
theStartingNumber) :
- m_documentNumber(theStartingNumber),
+XalanSourceTreeParserLiaison::XalanSourceTreeParserLiaison() :
m_xercesParserLiaison(),
m_documentMap(),
m_persistentDocumentMap(),
@@ -393,14 +390,6 @@
-XalanSourceTreeParserLiaison::DocumentNumberType
-XalanSourceTreeParserLiaison::getNextDocumentNumber()
-{
- return m_documentNumber++;
-}
-
-
-
int
XalanSourceTreeParserLiaison::getIndent() const
{
@@ -595,7 +584,7 @@
XalanSourceTreeParserLiaison::createXalanSourceTreeDocument()
{
XalanSourceTreeDocument* const theNewDocument =
- new XalanSourceTreeDocument(getNextDocumentNumber(),
m_poolAllText);
+ new XalanSourceTreeDocument(m_poolAllText);
m_documentMap[theNewDocument] = theNewDocument;
1.17 +2 -18
xml-xalan/c/src/XalanSourceTree/XalanSourceTreeParserLiaison.hpp
Index: XalanSourceTreeParserLiaison.hpp
===================================================================
RCS file:
/home/cvs/xml-xalan/c/src/XalanSourceTree/XalanSourceTreeParserLiaison.hpp,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -r1.16 -r1.17
--- XalanSourceTreeParserLiaison.hpp 1 Feb 2002 22:43:14 -0000 1.16
+++ XalanSourceTreeParserLiaison.hpp 6 Apr 2002 19:36:51 -0000 1.17
@@ -89,20 +89,15 @@
* Construct a XalanSourceTreeParserLiaison instance.
*
* @param theSupport instance of DOMSupport object
- * @param theStartingNumber the starting number for documents
*
* @deprecated This constructor is deprecated. Use the next
constructor instead.
*/
- XalanSourceTreeParserLiaison(
- XalanSourceTreeDOMSupport& theSupport,
- DocumentNumberType
theStartingNumber = 0);
+ XalanSourceTreeParserLiaison(XalanSourceTreeDOMSupport&
theSupport);
/**
* Construct a XalanSourceTreeParserLiaison instance.
- *
- * @param theStartingNumber the starting number for documents
*/
- XalanSourceTreeParserLiaison(DocumentNumberType
theStartingNumber = 0);
+ XalanSourceTreeParserLiaison();
virtual
~XalanSourceTreeParserLiaison();
@@ -162,9 +157,6 @@
virtual void
destroyDocument(XalanDocument* theDocument);
- virtual DocumentNumberType
- getNextDocumentNumber();
-
virtual int
getIndent() const;
@@ -358,12 +350,6 @@
XalanSourceTreeDocument*>
DocumentMapType;
#endif
- DocumentNumberType
- getDocumentNumber() const
- {
- return m_documentNumber;
- }
-
private:
// Not implemented...
@@ -374,8 +360,6 @@
// Data members...
- DocumentNumberType m_documentNumber;
-
XercesParserLiaison m_xercesParserLiaison;
DocumentMapType m_documentMap;
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]