diff options
author | Takeshi Abe <tabe@fixedpoint.jp> | 2015-05-26 23:39:34 +0900 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-05-27 13:41:11 +0000 |
commit | a6f611cb3d71edb7934c9ed44046ad621c2b7480 (patch) | |
tree | 283634b64365a301bd57d50533034060d27d0986 /starmath | |
parent | e3b0bae416b22f6dbf0a63efb645dadf75763a9c (diff) |
drop useless field bIsDebug
Its last usage was gone with d82fc206c5d27191bc47adc486cf32442908f62d.
Change-Id: Ia891dd860edc305689804d02d4c74aa41804e484
Reviewed-on: https://gerrit.libreoffice.org/15911
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'starmath')
-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) |