diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-02-03 13:40:17 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-02-03 13:44:50 +0100 |
commit | 337f199a899e339601d13a34d15319060c5be185 (patch) | |
tree | 2f845fd42b2b1031adcfee58efed21b56dda3994 /svtools | |
parent | 9f5eb314b0fc74d3779a8ce8116aa219ab82d5aa (diff) |
loplugin:unusedmethods
Change-Id: I8a2d86145a951bcaae891240b1ed6f539d93634c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87854
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/control/valueset.cxx | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/svtools/source/control/valueset.cxx b/svtools/source/control/valueset.cxx index 669a9682e9c6..e29502143e45 100644 --- a/svtools/source/control/valueset.cxx +++ b/svtools/source/control/valueset.cxx @@ -867,39 +867,6 @@ void ValueSet::ImplDraw(vcl::RenderContext& rRenderContext) ImplDrawSelect(rRenderContext); } -bool ValueSet::ImplScroll(const Point& rPos) -{ - if (!mbScroll || !maItemListRect.IsInside(rPos)) - return false; - - const long nScrollOffset = (mnItemHeight <= 16) ? SCROLL_OFFSET / 2 : SCROLL_OFFSET; - bool bScroll = false; - - if (rPos.Y() <= maItemListRect.Top() + nScrollOffset) - { - if (mnFirstLine > 0) - { - --mnFirstLine; - bScroll = true; - } - } - else if (rPos.Y() >= maItemListRect.Bottom() - nScrollOffset) - { - if (mnFirstLine < o3tl::make_unsigned(mnLines - mnVisLines)) - { - ++mnFirstLine; - bScroll = true; - } - } - - if (!bScroll) - return false; - - mbFormat = true; - Invalidate(); - return true; -} - size_t ValueSet::ImplGetItem( const Point& rPos ) const { if (!mbHasVisibleItems) @@ -989,11 +956,6 @@ IMPL_LINK( ValueSet,ImplScrollHdl, ScrollBar*, pScrollBar, void ) } } -IMPL_LINK_NOARG(ValueSet, ImplTimerHdl, Timer *, void) -{ - ImplTracking( GetPointerPosPixel() ); -} - void ValueSet::ImplTracking( const Point& rPos ) { ValueSetItem* pItem = ImplGetItem( ImplGetItem( rPos ) ); |