starmath/inc/node.hxx | 9 +-------- starmath/source/node.cxx | 23 ----------------------- 2 files changed, 1 insertion(+), 31 deletions(-)
New commits: commit a6f611cb3d71edb7934c9ed44046ad621c2b7480 Author: Takeshi Abe <[email protected]> Date: Tue May 26 23:39:34 2015 +0900 drop useless field bIsDebug Its last usage was gone with d82fc206c5d27191bc47adc486cf32442908f62d. Change-Id: Ia891dd860edc305689804d02d4c74aa41804e484 Reviewed-on: https://gerrit.libreoffice.org/15911 Tested-by: Jenkins <[email protected]> Reviewed-by: Caolán McNamara <[email protected]> Tested-by: Caolán McNamara <[email protected]> diff --git a/starmath/inc/node.hxx b/starmath/inc/node.hxx index 89620a4..9b0045b 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 311df24..bfe66dc 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)
_______________________________________________ Libreoffice-commits mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
