diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-01-25 20:36:45 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-01-25 20:56:32 +0000 |
commit | cffd26d1030b67e0ed300dafd8fdb406564face6 (patch) | |
tree | f1921f480052f1579fa044ab0378635b78cf7733 /vcl | |
parent | ee446f12390220ebcac8700a4fd4a1b5ebfc948d (diff) |
coverity#440860 Logically dead code
Change-Id: I8e57f3ecf4e4d4052c267b6e0c435253cf5b84ec
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/window/toolbox.cxx | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/vcl/source/window/toolbox.cxx b/vcl/source/window/toolbox.cxx index 514d2efbbf0a..bb91d10c6b97 100644 --- a/vcl/source/window/toolbox.cxx +++ b/vcl/source/window/toolbox.cxx @@ -446,26 +446,17 @@ void ToolBox::ImplDrawGradientBackground( ToolBox* pThis, ImplDockingWindowWrapp if( pThis->mbHorz ) { long y = 0; - sal_Bool bDrawSep = sal_False; // pThis->ImplIsFloatingMode() && ( pThis->mnWinStyle & WB_LINESPACING ); pThis->DrawGradient( Rectangle( 0, y, aTopLineSz.Width(), y+aTopLineSz.Height()), g ); y += aTopLineSz.Height(); - if ( bDrawSep ) - pThis->DrawLine( Point(0, y-2), Point(aTopLineSz.Width(), y-2) ); - while( y < (pThis->mnDY - aBottomLineSz.Height()) ) { pThis->DrawGradient( Rectangle( 0, y, aLineSz.Width(), y+aLineSz.Height()), g); y += aLineSz.Height(); - - if ( bDrawSep ) - pThis->DrawLine( Point(0, y-2), Point(aLineSz.Width(), y-2) ); } pThis->DrawGradient( Rectangle( 0, y, aBottomLineSz.Width(), y+aBottomLineSz.Height()), g ); - if ( bDrawSep ) - pThis->DrawLine( Point(0, y-2), Point(aBottomLineSz.Width(), y-2) ); } else { |