dbertoni 2002/09/20 18:23:00
Modified: c/src/XalanDOM XalanNode.cpp XalanNode.hpp
Log:
Removed obsolete code.
Revision Changes Path
1.5 +0 -86 xml-xalan/c/src/XalanDOM/XalanNode.cpp
Index: XalanNode.cpp
===================================================================
RCS file: /home/cvs/xml-xalan/c/src/XalanDOM/XalanNode.cpp,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- XalanNode.cpp 2 Nov 2000 01:46:41 -0000 1.4
+++ XalanNode.cpp 21 Sep 2002 01:22:59 -0000 1.5
@@ -58,77 +58,20 @@
-#if !defined(NDEBUG)
-size_t XalanNode::s_instanceCount = 0;
-
-#if defined(XALAN_NODE_SPECIAL_DEBUG)
-
-#include <set>
-
-#if defined(XALAN_NO_NAMESPACES)
-
-typedef set<XalanNode*, less<XalanNode*> > InstanceSetType;
-
-#else
-
-typedef std::set<XalanNode*> InstanceSetType;
-
-#endif
-
-static InstanceSetType s_instanceSet;
-
-#endif
-
-#endif
-
-
-
XalanNode::XalanNode()
{
-#if !defined(NDEBUG)
- s_instanceCount++;
-
-#if defined(XALAN_NODE_SPECIAL_DEBUG)
- s_instanceSet.insert(this);
-
-#endif
-
-#endif
-
}
XalanNode::~XalanNode()
{
-#if !defined(NDEBUG)
-
- s_instanceCount--;
-
-#if defined(XALAN_NODE_SPECIAL_DEBUG)
-
- s_instanceSet.erase(this);
-
-#endif
-
-#endif
}
XalanNode::XalanNode(const XalanNode& /* theSource */)
{
-#if !defined(NDEBUG)
-
- s_instanceCount++;
-
-#if defined(XALAN_NODE_SPECIAL_DEBUG)
-
- s_instanceSet.insert(this);
-
-#endif
-
-#endif
}
@@ -146,32 +89,3 @@
{
return false;
}
-
-
-
-#if !defined(NDEBUG)
-
-void
-#if defined(XALAN_NODE_SPECIAL_DEBUG)
-XalanNode::getLiveInstances(XalanNode* theNodes[])
-#else
-XalanNode::getLiveInstances(XalanNode* /* theNodes*/ [])
-#endif
-{
-#if defined(XALAN_NODE_SPECIAL_DEBUG)
-
- InstanceSetType::const_iterator i =
- s_instanceSet.begin();
-
- InstanceSetType::const_iterator end =
- s_instanceSet.end();
-
- for(size_t j = 0; i != end; ++i, ++j)
- {
- theNodes[j] = *i;
- }
-#endif
-}
-
-#endif
-
1.6 +0 -28 xml-xalan/c/src/XalanDOM/XalanNode.hpp
Index: XalanNode.hpp
===================================================================
RCS file: /home/cvs/xml-xalan/c/src/XalanDOM/XalanNode.hpp,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- XalanNode.hpp 8 Feb 2002 01:47:22 -0000 1.5
+++ XalanNode.hpp 21 Sep 2002 01:23:00 -0000 1.6
@@ -451,34 +451,6 @@
//@}
-
-#if !defined(NDEBUG)
-
- /**
- * Get the number of live instances.
- * @return the number of live instances.
- */
- static size_t
- getInstanceCount()
- {
- return s_instanceCount;
- }
-
-
- /**
- * File an array with pointers to all of the
- * live instances. This function is only
- * available if XALAN_NODE_SPECIAL_DEBUG is
- * defined. Otherwise this function does
- * nothing.
- *
- * @param An array in which to store the pointers.
- */
- static void
- getLiveInstances(XalanNode* theNodes[]);
-
-#endif
-
protected:
XalanNode(const XalanNode& theSource);
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]