diff options
-rw-r--r-- | starmath/inc/node.hxx | 9 | ||||
-rw-r--r-- | starmath/source/node.cxx | 23 |
2 files changed, 1 insertions, 31 deletions
diff --git a/starmath/inc/node.hxx b/starmath/inc/node.hxx index 89620a439865..9b0045b5c863 100644 --- a/starmath/inc/node.hxx +++ b/starmath/inc/node.hxx @@ -100,9 +100,7 @@ class SmNode : public SmRect RectHorAlign eRectHorAlign; sal_uInt16 nFlags, nAttributes; - bool bIsPhantom, - bIsDebug; - + bool bIsPhantom; bool bIsSelected; protected: @@ -132,7 +130,6 @@ public: sal_uInt16 & Flags() { return nFlags; } sal_uInt16 & Attributes() { return nAttributes; } - bool IsDebug() const { return bIsDebug; } bool IsPhantom() const { return bIsPhantom; } void SetPhantom(bool bIsPhantom); void SetColor(const Color &rColor); @@ -152,10 +149,6 @@ public: sal_uInt16 FindIndex() const; -#if OSL_DEBUG_LEVEL - void ToggleDebug() const; -#endif - void SetRectHorAlign(RectHorAlign eHorAlign, bool bApplyToSubTree = true ); RectHorAlign GetRectHorAlign() const { return eRectHorAlign; } diff --git a/starmath/source/node.cxx b/starmath/source/node.cxx index 311df24840ca..bfe66dcb439b 100644 --- a/starmath/source/node.cxx +++ b/starmath/source/node.cxx @@ -46,7 +46,6 @@ SmNode::SmNode(SmNodeType eNodeType, const SmToken &rNodeToken) , nFlags( 0 ) , nAttributes( 0 ) , bIsPhantom( false ) - , bIsDebug( false ) , bIsSelected( false ) , nAccIndex( -1 ) , aParentNode( NULL ) @@ -256,11 +255,6 @@ void SmNode::PrepareAttributes() void SmNode::Prepare(const SmFormat &rFormat, const SmDocShell &rDocShell) { -#if OSL_DEBUG_LEVEL > 1 - bIsDebug = true; -#else - bIsDebug = false; -#endif bIsPhantom = false; nFlags = 0; nAttributes = 0; @@ -300,23 +294,6 @@ sal_uInt16 SmNode::FindIndex() const } -#if OSL_DEBUG_LEVEL > 1 -void SmNode::ToggleDebug() const - // toggle 'bIsDebug' in current subtree -{ - SmNode *pThis = (SmNode *) this; - - pThis->bIsDebug = bIsDebug ? false : true; - - SmNode *pNode; - sal_uInt16 nSize = GetNumSubNodes(); - for (sal_uInt16 i = 0; i < nSize; i++) - if (NULL != (pNode = pThis->GetSubNode(i))) - pNode->ToggleDebug(); -} -#endif - - void SmNode::Move(const Point& rPosition) { if (rPosition.X() == 0 && rPosition.Y() == 0) |