summaryrefslogtreecommitdiff
path: root/vcl/source/control
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-09-03 12:16:53 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-09-03 12:16:53 +0200
commitc95e3eeeb9950c48e32948e14d3081dff8fd709e (patch)
treed03e634cefb01b7890c474984bfb4cb80e0a604d /vcl/source/control
parentda6dc61f03db45a50dd5e31c2ca808bdf7adf0ab (diff)
clang-tidy clang-analyzer-deadcode.DeadStores
...of computing nDraw, since 04c037d8a8f1ca954181d75ab3a7cc648a5d1d63 "refactor ScrollBar to use RenderContext" replaced call to ImplDraw(nDraw,this) with call to Invalidate() Change-Id: Ifb9a2494715363c35c19574e85852b488667f97e
Diffstat (limited to 'vcl/source/control')
-rw-r--r--vcl/source/control/scrbar.cxx18
1 files changed, 0 insertions, 18 deletions
diff --git a/vcl/source/control/scrbar.cxx b/vcl/source/control/scrbar.cxx
index 0246276470fe..be52f24918f5 100644
--- a/vcl/source/control/scrbar.cxx
+++ b/vcl/source/control/scrbar.cxx
@@ -135,11 +135,6 @@ void ScrollBar::dispose()
void ScrollBar::ImplUpdateRects( bool bUpdate )
{
- sal_uInt16 nOldStateFlags = mnStateFlags;
- Rectangle aOldPage1Rect = maPage1Rect;
- Rectangle aOldPage2Rect = maPage2Rect;
- Rectangle aOldThumbRect = maThumbRect;
-
mnStateFlags &= ~SCRBAR_STATE_BTN1_DISABLE;
mnStateFlags &= ~SCRBAR_STATE_BTN2_DISABLE;
@@ -217,19 +212,6 @@ void ScrollBar::ImplUpdateRects( bool bUpdate )
if ( bUpdate )
{
- sal_uInt16 nDraw = 0;
- if ( (nOldStateFlags & SCRBAR_STATE_BTN1_DISABLE) !=
- (mnStateFlags & SCRBAR_STATE_BTN1_DISABLE) )
- nDraw |= SCRBAR_DRAW_BTN1;
- if ( (nOldStateFlags & SCRBAR_STATE_BTN2_DISABLE) !=
- (mnStateFlags & SCRBAR_STATE_BTN2_DISABLE) )
- nDraw |= SCRBAR_DRAW_BTN2;
- if ( aOldPage1Rect != maPage1Rect )
- nDraw |= SCRBAR_DRAW_PAGE1;
- if ( aOldPage2Rect != maPage2Rect )
- nDraw |= SCRBAR_DRAW_PAGE2;
- if ( aOldThumbRect != maThumbRect )
- nDraw |= SCRBAR_DRAW_THUMB;
Invalidate();
}
}