dbertoni 00/12/04 12:46:29
Modified: c/src/XPath MutableNodeRefList.cpp MutableNodeRefList.hpp
NodeRefList.cpp NodeRefList.hpp NodeRefListBase.hpp
XResultTreeFrag.cpp XResultTreeFrag.hpp
Log:
Removed unused clone() function.
Revision Changes Path
1.17 +0 -12 xml-xalan/c/src/XPath/MutableNodeRefList.cpp
Index: MutableNodeRefList.cpp
===================================================================
RCS file: /home/cvs/xml-xalan/c/src/XPath/MutableNodeRefList.cpp,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -r1.16 -r1.17
--- MutableNodeRefList.cpp 2000/11/27 19:48:16 1.16
+++ MutableNodeRefList.cpp 2000/12/04 20:46:16 1.17
@@ -670,15 +670,3 @@
assert(checkForDuplicates() == false);
}
-
-
-
-#if defined(XALAN_NO_COVARIANT_RETURN_TYPE)
-NodeRefListBase*
-#else
-MutableNodeRefList*
-#endif
-MutableNodeRefList::clone() const
-{
- return new MutableNodeRefList(*this);
-}
1.12 +0 -7 xml-xalan/c/src/XPath/MutableNodeRefList.hpp
Index: MutableNodeRefList.hpp
===================================================================
RCS file: /home/cvs/xml-xalan/c/src/XPath/MutableNodeRefList.hpp,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- MutableNodeRefList.hpp 2000/08/10 18:37:29 1.11
+++ MutableNodeRefList.hpp 2000/12/04 20:46:16 1.12
@@ -226,13 +226,6 @@
void
clearNulls();
-#if defined(XALAN_NO_COVARIANT_RETURN_TYPE)
- virtual NodeRefListBase*
-#else
- virtual MutableNodeRefList*
-#endif
- clone() const;
-
typedef NodeListVectorType::iterator NodeListIteratorType;
};
1.11 +0 -12 xml-xalan/c/src/XPath/NodeRefList.cpp
Index: NodeRefList.cpp
===================================================================
RCS file: /home/cvs/xml-xalan/c/src/XPath/NodeRefList.cpp,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- NodeRefList.cpp 2000/08/15 19:43:18 1.10
+++ NodeRefList.cpp 2000/12/04 20:46:17 1.11
@@ -183,18 +183,6 @@
-#if defined(XALAN_NO_COVARIANT_RETURN_TYPE)
-NodeRefListBase*
-#else
-NodeRefList*
-#endif
-NodeRefList::clone() const
-{
- return new NodeRefList(*this);
-}
-
-
-
#if !defined(NDEBUG)
bool
NodeRefList::checkForDuplicates() const
1.14 +0 -7 xml-xalan/c/src/XPath/NodeRefList.hpp
Index: NodeRefList.hpp
===================================================================
RCS file: /home/cvs/xml-xalan/c/src/XPath/NodeRefList.hpp,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- NodeRefList.hpp 2000/11/30 17:06:34 1.13
+++ NodeRefList.hpp 2000/12/04 20:46:17 1.14
@@ -117,13 +117,6 @@
virtual unsigned int
indexOf(const XalanNode* theNode) const;
-#if defined(XALAN_NO_COVARIANT_RETURN_TYPE)
- virtual NodeRefListBase*
-#else
- virtual NodeRefList*
-#endif
- clone() const;
-
#if !defined(NDEBUG)
bool
checkForDuplicates() const;
1.8 +0 -3 xml-xalan/c/src/XPath/NodeRefListBase.hpp
Index: NodeRefListBase.hpp
===================================================================
RCS file: /home/cvs/xml-xalan/c/src/XPath/NodeRefListBase.hpp,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- NodeRefListBase.hpp 2000/08/10 18:37:30 1.7
+++ NodeRefListBase.hpp 2000/12/04 20:46:17 1.8
@@ -119,9 +119,6 @@
virtual unsigned int
indexOf(const XalanNode* theNode) const = 0;
- virtual NodeRefListBase*
- clone() const = 0;
-
#if defined(XALAN_INLINE_INITIALIZATION)
static const unsigned int npos = UINT_MAX;
#else
1.15 +2 -9 xml-xalan/c/src/XPath/XResultTreeFrag.cpp
Index: XResultTreeFrag.cpp
===================================================================
RCS file: /home/cvs/xml-xalan/c/src/XPath/XResultTreeFrag.cpp,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -r1.14 -r1.15
--- XResultTreeFrag.cpp 2000/11/02 01:46:04 1.14
+++ XResultTreeFrag.cpp 2000/12/04 20:46:17 1.15
@@ -244,6 +244,7 @@
while(theCurrentChild != 0)
{
++theLength;
+
theCurrentChild = theCurrentChild->getNextSibling();
}
@@ -268,19 +269,11 @@
}
else
{
- theIndex++;
+ ++theIndex;
theCurrentChild = theCurrentChild->getNextSibling();
}
}
return fFound == true ? theIndex : NodeRefListBase::npos;
-}
-
-
-
-NodeRefListBase*
-XResultTreeFrag::clone() const
-{
- return new XResultTreeFrag(*this);
}
1.15 +0 -3 xml-xalan/c/src/XPath/XResultTreeFrag.hpp
Index: XResultTreeFrag.hpp
===================================================================
RCS file: /home/cvs/xml-xalan/c/src/XPath/XResultTreeFrag.hpp,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -r1.14 -r1.15
--- XResultTreeFrag.hpp 2000/11/02 01:46:04 1.14
+++ XResultTreeFrag.hpp 2000/12/04 20:46:17 1.15
@@ -162,9 +162,6 @@
virtual unsigned int
indexOf(const XalanNode* theNode) const;
- virtual NodeRefListBase*
- clone() const;
-
XalanAutoPtr<ResultTreeFragBase> m_value;
mutable XalanDOMString m_cachedStringValue;