From 90ca7d9e2423afccfaece5f7ffef7fcdd3b5b1e7 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Tue, 13 Dec 2011 08:04:26 +0000 Subject: callcatcher: remove newly unused code --- vcl/inc/vcl/splitwin.hxx | 1 - vcl/inc/vcl/status.hxx | 1 - vcl/source/window/splitwin.cxx | 42 ------------------------------------------ vcl/source/window/status.cxx | 18 ------------------ 4 files changed, 62 deletions(-) (limited to 'vcl') diff --git a/vcl/inc/vcl/splitwin.hxx b/vcl/inc/vcl/splitwin.hxx index be20f39fcb20..f60de25a443c 100644 --- a/vcl/inc/vcl/splitwin.hxx +++ b/vcl/inc/vcl/splitwin.hxx @@ -118,7 +118,6 @@ private: SAL_DLLPRIVATE void ImplInitSettings(); SAL_DLLPRIVATE void ImplCalcLayout(); SAL_DLLPRIVATE void ImplUpdate(); - SAL_DLLPRIVATE void ImplUpdateSet( ImplSplitSet* pSet ); SAL_DLLPRIVATE void ImplSetWindowSize( long nDelta ); SAL_DLLPRIVATE void ImplSplitMousePos( Point& rMousePos ); SAL_DLLPRIVATE void ImplGetButtonRect( Rectangle& rRect, long nEx, sal_Bool bTest ) const; diff --git a/vcl/inc/vcl/status.hxx b/vcl/inc/vcl/status.hxx index 56cf7c7c6989..19a4801097c9 100644 --- a/vcl/inc/vcl/status.hxx +++ b/vcl/inc/vcl/status.hxx @@ -118,7 +118,6 @@ private: SAL_DLLPRIVATE void ImplCalcProgressRect(); SAL_DLLPRIVATE Rectangle ImplGetItemRectPos( sal_uInt16 nPos ) const; SAL_DLLPRIVATE sal_uInt16 ImplGetFirstVisiblePos() const; - SAL_DLLPRIVATE void ImplCalcBorder(); public: StatusBar( Window* pParent, diff --git a/vcl/source/window/splitwin.cxx b/vcl/source/window/splitwin.cxx index 7d13123cc6f5..f5da20628558 100644 --- a/vcl/source/window/splitwin.cxx +++ b/vcl/source/window/splitwin.cxx @@ -1629,48 +1629,6 @@ void SplitWindow::ImplUpdate() // ----------------------------------------------------------------------- -void SplitWindow::ImplUpdateSet( ImplSplitSet* pSet ) -{ - if ( IsReallyShown() && IsUpdateMode() && mbRecalc ) - { - // Wenn wir noch berechnen muessen, dann alles invalidieren. - if ( mbCalc ) - { - // Wenn nicht NOSPLITDRAW gesetzt ist, koennen wir uns das - // invalidieren sparen, da bei ImplCalcSet2() die freien flaechen - // sowieso invalidiert werden - if ( !mpMainSet->mpItems || (mnWinStyle & WB_NOSPLITDRAW) ) - pSet = mpMainSet; - else - return; - } - - Rectangle aRect; - if ( pSet == mpMainSet ) - { - aRect.Left() = mnLeftBorder; - aRect.Top() = mnTopBorder; - aRect.Right() = mnDX-mnRightBorder-1; - aRect.Bottom() = mnDY-mnBottomBorder-1; - } - else - { - ImplSplitItem* pItem; - sal_uInt16 nPos; - - pSet = ImplFindItem( mpMainSet, pSet->mnId, nPos ); - pItem = &(pSet->mpItems[nPos]); - aRect.Left() = pItem->mnLeft; - aRect.Top() = pItem->mnTop; - aRect.Right() = aRect.Left()+pItem->mnWidth; - aRect.Bottom() = aRect.Top()+pItem->mnHeight; - } - Invalidate( aRect ); - } -} - -// ----------------------------------------------------------------------- - void SplitWindow::ImplSplitMousePos( Point& rMousePos ) { if ( mnSplitTest & SPLIT_HORZ ) diff --git a/vcl/source/window/status.cxx b/vcl/source/window/status.cxx index b701697c0dd4..9ce138a0e588 100644 --- a/vcl/source/window/status.cxx +++ b/vcl/source/window/status.cxx @@ -1368,24 +1368,6 @@ rtl::OString StatusBar::GetHelpId( sal_uInt16 nItemId ) const return aRet; } -// ----------------------------------------------------------------------- - -void StatusBar::ImplCalcBorder( ) -{ - mnCalcHeight = mnDY; - // subtract border - if( IsTopBorder() ) - { - mnCalcHeight -= 2; - mnTextY += 2; - mnItemY += 2; - } - if ( IsBottomBorder() ) - mnCalcHeight -= 2; - mbFormat = sal_True; - Invalidate(); -} - sal_Bool StatusBar::IsTopBorder() const { return mpImplData->mbTopBorder; -- cgit