summaryrefslogtreecommitdiff
path: root/vcl/source/control/scrbar.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-06-15 13:57:36 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-06-17 15:06:52 +0200
commit8914595d4623390e4bac9ebbdf0d5ae9ab69aa8a (patch)
tree2fe937925e9cde3e835119c57f12807bc1f419db /vcl/source/control/scrbar.cxx
parentd69795b9c9d2dac7b751c6fe8b4663c0c26a129b (diff)
loplugin:unusedfields in vcl part1
Change-Id: I67d176003f39992cd0ff9271a7d6ce26d2cb6619 Reviewed-on: https://gerrit.libreoffice.org/38828 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/source/control/scrbar.cxx')
-rw-r--r--vcl/source/control/scrbar.cxx7
1 files changed, 0 insertions, 7 deletions
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() )