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 /vcl | |
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 'vcl')
-rw-r--r-- | vcl/inc/slider.hxx | 2 | ||||
-rw-r--r-- | vcl/source/control/slider.cxx | 19 | ||||
-rw-r--r-- | vcl/source/window/builder.cxx | 6 |
3 files changed, 4 insertions, 23 deletions
diff --git a/vcl/inc/slider.hxx b/vcl/inc/slider.hxx index ea40a214675a..a52126ee71f8 100644 --- a/vcl/inc/slider.hxx +++ b/vcl/inc/slider.hxx @@ -48,7 +48,6 @@ private: sal_uInt16 mnStateFlags; ScrollType meScrollType; bool mbCalcSize; - bool mbScrollTypeSet; Link<Slider*,void> maSlideHdl; @@ -94,7 +93,6 @@ public: long GetLineSize() const { return mnLineSize; } void SetPageSize( long nNewSize ) { mnPageSize = nNewSize; } long GetPageSize() const { return mnPageSize; } - void SetScrollTypeSet(bool b) { mbScrollTypeSet = b; } Size CalcWindowSizePixel(); diff --git a/vcl/source/control/slider.cxx b/vcl/source/control/slider.cxx index 4b14b2e00626..a475a3b3e458 100644 --- a/vcl/source/control/slider.cxx +++ b/vcl/source/control/slider.cxx @@ -56,7 +56,6 @@ void Slider::ImplInit( vcl::Window* pParent, WinBits nStyle ) mnStateFlags = 0; meScrollType = ScrollType::DontKnow; mbCalcSize = true; - mbScrollTypeSet = false; Control::ImplInit( pParent, nStyle, nullptr ); @@ -646,23 +645,13 @@ void Slider::MouseButtonDown( const MouseEvent& rMEvt ) } else if ( ImplIsPageUp( rMousePos ) ) { - if( mbScrollTypeSet ) - meScrollType = ScrollType::Set; - else - { - nTrackFlags = StartTrackingFlags::ButtonRepeat; - meScrollType = ScrollType::PageUp; - } + nTrackFlags = StartTrackingFlags::ButtonRepeat; + meScrollType = ScrollType::PageUp; } else if ( ImplIsPageDown( rMousePos ) ) { - if( mbScrollTypeSet ) - meScrollType = ScrollType::Set; - else - { - nTrackFlags = StartTrackingFlags::ButtonRepeat; - meScrollType = ScrollType::PageDown; - } + nTrackFlags = StartTrackingFlags::ButtonRepeat; + meScrollType = ScrollType::PageDown; } // Shall we start Tracking? diff --git a/vcl/source/window/builder.cxx b/vcl/source/window/builder.cxx index 69758641ea23..a4ee7866305a 100644 --- a/vcl/source/window/builder.cxx +++ b/vcl/source/window/builder.cxx @@ -2497,12 +2497,6 @@ namespace BuilderUtils return sCustomProperty; } - FieldUnit detectUnit(OUString const& rString) - { - OUString const unit(extractUnit(rString)); - return detectMetricUnit(unit); - } - void ensureDefaultWidthChars(VclBuilder::stringmap &rMap) { OString sWidthChars("width-chars"); |