summaryrefslogtreecommitdiff
path: root/sw/source/core/SwNumberTree
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2011-11-24 00:52:09 +0100
committerMichael Stahl <mstahl@redhat.com>2011-11-24 00:52:09 +0100
commitae64bf305155b40af138e490e524e34a74ba6ad7 (patch)
treea75ca6fa2a6736a0747debd760dfecb155a7c6ad /sw/source/core/SwNumberTree
parent772063ba8ad6b18f609cdc7da02534c15b785965 (diff)
sw: remove debug instance counting
There are various classes that in DBG_UTIL mode count their instances with a global variable, and give each instance a unique serial number. The purpose of this exercise is somewhat unclear to me. This removes the instance counting from: SwNumberTree, SwIndex, SwNodeIndex, SwNumRule
Diffstat (limited to 'sw/source/core/SwNumberTree')
-rw-r--r--sw/source/core/SwNumberTree/SwNumberTree.cxx24
1 files changed, 0 insertions, 24 deletions
diff --git a/sw/source/core/SwNumberTree/SwNumberTree.cxx b/sw/source/core/SwNumberTree/SwNumberTree.cxx
index b333eac87fc7..441f0f16ba2c 100644
--- a/sw/source/core/SwNumberTree/SwNumberTree.cxx
+++ b/sw/source/core/SwNumberTree/SwNumberTree.cxx
@@ -36,9 +36,6 @@
using std::vector;
using std::find;
-#ifdef DBG_UTIL
-unsigned long SwNumberTreeNode::s_nInstances = 0;
-#endif
SwNumberTreeNode::SwNumberTreeNode()
: mChildren(),
@@ -49,11 +46,6 @@ SwNumberTreeNode::SwNumberTreeNode()
mItLastValid()
{
mItLastValid = mChildren.end();
-
-#ifdef DBG_UTIL
- m_nSerial = s_nInstances;
- s_nInstances++;
-#endif
}
SwNumberTreeNode::~SwNumberTreeNode()
@@ -75,10 +67,6 @@ SwNumberTreeNode::~SwNumberTreeNode()
OSL_ENSURE( IsPhantom() || mpParent == NULL, ": I'm not supposed to have a parent.");
-#ifdef DBG_UTIL
- s_nInstances--;
-#endif
-
mpParent = (SwNumberTreeNode *) 0xdeadbeef;
OSL_ENSURE(mChildren.empty(), "children left!");
@@ -997,18 +985,6 @@ SwNumberTreeNode::GetIterator(const SwNumberTreeNode * pChild) const
return aItResult;
}
-#ifdef DBG_UTIL
-unsigned long SwNumberTreeNode::GetInstances()
-{
- return s_nInstances;
-}
-
-unsigned long SwNumberTreeNode::GetSerial()
-{
- return m_nSerial;
-}
-#endif
-
bool SwNumberTreeNodeLessThan(const SwNumberTreeNode * pA,
const SwNumberTreeNode * pB)
{