From 8914595d4623390e4bac9ebbdf0d5ae9ab69aa8a Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 15 Jun 2017 13:57:36 +0200 Subject: loplugin:unusedfields in vcl part1 Change-Id: I67d176003f39992cd0ff9271a7d6ce26d2cb6619 Reviewed-on: https://gerrit.libreoffice.org/38828 Tested-by: Jenkins Reviewed-by: Noel Grandin --- vcl/source/control/scrbar.cxx | 7 ------- 1 file changed, 7 deletions(-) (limited to 'vcl/source/control/scrbar.cxx') diff --git a/vcl/source/control/scrbar.cxx b/vcl/source/control/scrbar.cxx index 95ab867d4844..5f84ff2c4022 100644 --- a/vcl/source/control/scrbar.cxx +++ b/vcl/source/control/scrbar.cxx @@ -82,7 +82,6 @@ void ScrollBar::ImplInit( vcl::Window* pParent, WinBits nStyle ) mnLineSize = 1; mnPageSize = 1; mnDelta = 0; - mnDragDraw = 0; mnStateFlags = 0; meScrollType = ScrollType::DontKnow; mbCalcSize = true; @@ -879,7 +878,6 @@ void ScrollBar::MouseButtonDown( const MouseEvent& rMEvt ) { nTrackFlags = StartTrackingFlags::ButtonRepeat; meScrollType = ScrollType::LineUp; - mnDragDraw = SCRBAR_DRAW_BTN1; } } else if ( HitTestNativeScrollbar( bHorizontal? (IsRTLEnabled()? ControlPart::ButtonLeft: ControlPart::ButtonRight): ControlPart::ButtonDown, @@ -891,7 +889,6 @@ void ScrollBar::MouseButtonDown( const MouseEvent& rMEvt ) { nTrackFlags = StartTrackingFlags::ButtonRepeat; meScrollType = ScrollType::LineDown; - mnDragDraw = SCRBAR_DRAW_BTN2; } } else @@ -919,7 +916,6 @@ void ScrollBar::MouseButtonDown( const MouseEvent& rMEvt ) { nTrackFlags = StartTrackingFlags::NONE; meScrollType = ScrollType::Drag; - mnDragDraw = SCRBAR_DRAW_THUMB; // calculate mouse offset if (bWarp && (!bThumbHit || !bPrimaryWarping)) @@ -955,12 +951,10 @@ void ScrollBar::MouseButtonDown( const MouseEvent& rMEvt ) maPage1Rect.IsInside( rMousePos ) ) { meScrollType = ScrollType::PageUp; - mnDragDraw = SCRBAR_DRAW_PAGE1; } else { meScrollType = ScrollType::PageDown; - mnDragDraw = SCRBAR_DRAW_PAGE2; } } } @@ -993,7 +987,6 @@ void ScrollBar::Tracking( const TrackingEvent& rTEvt ) SCRBAR_STATE_THUMB_DOWN); if ( nOldStateFlags != mnStateFlags ) Invalidate(); - mnDragDraw = 0; // Restore the old ThumbPosition when canceled if ( rTEvt.IsTrackingCanceled() ) -- cgit