From c11790bb6758af3220cbb5931bf2c9f77cbb51eb Mon Sep 17 00:00:00 2001 From: Thomas Arnhold Date: Fri, 4 Apr 2014 15:11:53 +0200 Subject: [PATCH] remove OV* debug stuff --- svtools/source/contnr/imivctl1.cxx | 25 ------------------------- svtools/source/contnr/treelistbox.cxx | 14 -------------- tools/source/stream/stream.cxx | 6 ------ 3 files changed, 45 deletions(-) diff --git a/svtools/source/contnr/imivctl1.cxx b/svtools/source/contnr/imivctl1.cxx index e41a98867431..b4972f2f8120 100644 --- a/svtools/source/contnr/imivctl1.cxx +++ b/svtools/source/contnr/imivctl1.cxx @@ -1584,16 +1584,6 @@ void SvxIconChoiceCtrl_Impl::PaintEmphasis( if( !pOut ) pOut = pView; -#ifdef OV_CHECK_EMPH_RECTS - { - Color aXOld( pOut->GetFillColor() ); - pOut->SetFillColor( Color( COL_GREEN )); - pOut->DrawRect( rTextRect ); - pOut->DrawRect( rImageRect ); - pOut->SetFillColor( aXOld ); - } -#endif - const StyleSettings& rSettings = pOut->GetSettings().GetStyleSettings(); Color aOldFillColor( pOut->GetFillColor() ); @@ -1714,9 +1704,6 @@ void SvxIconChoiceCtrl_Impl::PaintItem( const Rectangle& rRect, void SvxIconChoiceCtrl_Impl::PaintEntryVirtOutDev( SvxIconChoiceCtrlEntry* pEntry ) { -#ifdef OV_NO_VIRT_OUTDEV - PaintEntry( pEntry ); -#else if( !pEntryPaintDev ) { pEntryPaintDev = new VirtualDevice( *pView ); @@ -1751,7 +1738,6 @@ void SvxIconChoiceCtrl_Impl::PaintEntryVirtOutDev( SvxIconChoiceCtrlEntry* pEntr Point(), aSize, *pEntryPaintDev ); -#endif } @@ -1832,17 +1818,6 @@ void SvxIconChoiceCtrl_Impl::PaintEntry( SvxIconChoiceCtrlEntry* pEntry, const P } } -#ifdef OV_DRAWBOUNDRECT - { - Color aXOldColor = pOut->GetLineColor(); - pOut->SetLineColor( Color( COL_LIGHTRED ) ); - Rectangle aXRect( pEntry->aRect ); - aXRect.SetPos( rPos ); - pOut->DrawRect( aXRect ); - pOut->SetLineColor( aXOldColor ); - } -#endif - sal_Bool bLargeIconMode = WB_ICON == ( nWinBits & (VIEWMODE_MASK) ); sal_uInt16 nBmpPaintFlags = PAINTFLAG_VER_CENTERED; if ( bLargeIconMode ) diff --git a/svtools/source/contnr/treelistbox.cxx b/svtools/source/contnr/treelistbox.cxx index d27f7b601b68..57553c8f3a52 100644 --- a/svtools/source/contnr/treelistbox.cxx +++ b/svtools/source/contnr/treelistbox.cxx @@ -2156,20 +2156,6 @@ void SvTreeListBox::KeyInput( const KeyEvent& rKEvt ) nImpFlags |= SVLBOX_IS_TRAVELSELECT; -#ifdef OVDEBUG - sal_uInt16 nCode = rKEvt.GetKeyCode().GetCode(); - switch ( nCode ) - { - case KEY_F1: - { - SvTreeListEntry* pEntry = First(); - pEntry = NextVisible( pEntry ); - SetEntryText( pEntry, "SetEntryText" ); - } - break; - } -#endif - if( !pImp->KeyInput( rKEvt ) ) { bool bHandled = HandleKeyInput( rKEvt ); diff --git a/tools/source/stream/stream.cxx b/tools/source/stream/stream.cxx index 7a41595ccf61..0ed749ebddfd 100644 --- a/tools/source/stream/stream.cxx +++ b/tools/source/stream/stream.cxx @@ -1454,12 +1454,6 @@ sal_uInt64 SvStream::Seek(sal_uInt64 const nFilePos) pBufPos = pRWBuf; m_nBufFilePos = SeekPos( nFilePos ); } -#ifdef OV_DEBUG - { - sal_uInt64 nDebugTemp = m_nBufFilePos + nBufActualPos; - DBG_ASSERT(Tell()==nDebugTemp,"Sync?"); - } -#endif return m_nBufFilePos + nBufActualPos; }