From 20553c9a932804b4759d0a5eda009e74cf538fde Mon Sep 17 00:00:00 2001 From: Takeshi Abe Date: Wed, 21 Nov 2012 23:03:29 +0900 Subject: Remove unused code Change-Id: I21800d9da3f31f3a53298e824f0f70b9cf8c0431 --- sw/source/core/draw/dview.cxx | 21 --------------------- sw/source/core/edit/autofmt.cxx | 6 ------ 2 files changed, 27 deletions(-) diff --git a/sw/source/core/draw/dview.cxx b/sw/source/core/draw/dview.cxx index b4a8058794da..829ad2527dbf 100644 --- a/sw/source/core/draw/dview.cxx +++ b/sw/source/core/draw/dview.cxx @@ -354,27 +354,6 @@ SdrObject* SwDrawView::GetMaxToBtmObj(SdrObject* pObj) const |* *************************************************************************/ -static inline sal_Bool lcl_IsChild( SdrObject *pParent, SdrObject *pChild ) -{ - if ( pParent->ISA(SwVirtFlyDrawObj) ) - { - const SwFrm *pAnch = lcl_FindAnchor( pChild, sal_False ); - if ( pAnch && ((SwVirtFlyDrawObj*)pParent)->GetFlyFrm()->IsAnLower( pAnch )) - { - return sal_True; - } - } - return sal_False; -} - -static inline SdrObject *lcl_FindParent( SdrObject *pObj ) -{ - const SwFrm *pAnch = lcl_FindAnchor( pObj, sal_False ); - if ( pAnch && pAnch->IsInFly() ) - return (SdrObject*)pAnch->FindFlyFrm()->GetVirtDrawObj(); - return 0; -} - /** determine maximal order number for a 'child' object of given 'parent' object @author OD diff --git a/sw/source/core/edit/autofmt.cxx b/sw/source/core/edit/autofmt.cxx index 9364a1ce670e..cd33e464e6ee 100644 --- a/sw/source/core/edit/autofmt.cxx +++ b/sw/source/core/edit/autofmt.cxx @@ -147,9 +147,6 @@ class SwAutoFormat sal_Bool bEmptyLine : 1; sal_Bool bMoreLines : 1; - static sal_Bool m_bAskForCancelUndoWhileBufferOverflow; - static short m_nActionWhileAutoformatUndoBufferOverflow; - // ------------- private methods ----------------------------- void _GetCharClass( LanguageType eLang ); @@ -250,9 +247,6 @@ public: } }; -sal_Bool SwAutoFormat::m_bAskForCancelUndoWhileBufferOverflow = sal_True; -short SwAutoFormat::m_nActionWhileAutoformatUndoBufferOverflow = RET_YES; - const sal_Unicode* StrChr( const sal_Unicode* pSrc, sal_Unicode c ) { while( *pSrc && *pSrc != c ) -- cgit