summaryrefslogtreecommitdiff
path: root/vcl/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-01-29 21:23:04 +0000
committerCaolán McNamara <caolanm@redhat.com>2020-01-30 09:47:33 +0100
commite9136f8f30d08b29b684bc7870aee7a845283065 (patch)
treeb9d70af6d1713d11432e4fa467f149b8f9350e13 /vcl/source
parentbdd1229c3e1f1d8281e56151b3907c9a6eb07e04 (diff)
mpLinkedField is never set
Change-Id: Ib774c57e9137979fc3f70d4798f1b875b99e4ea1 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87710 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl/source')
-rw-r--r--vcl/source/control/slider.cxx17
1 files changed, 0 insertions, 17 deletions
diff --git a/vcl/source/control/slider.cxx b/vcl/source/control/slider.cxx
index 394371f0fac5..f1f447f56673 100644
--- a/vcl/source/control/slider.cxx
+++ b/vcl/source/control/slider.cxx
@@ -58,8 +58,6 @@ void Slider::ImplInit( vcl::Window* pParent, WinBits nStyle )
mbCalcSize = true;
mbScrollTypeSet = false;
- mpLinkedField = nullptr;
-
Control::ImplInit( pParent, nStyle, nullptr );
ImplInitSettings();
@@ -77,12 +75,6 @@ Slider::~Slider()
disposeOnce();
}
-void Slider::dispose()
-{
- mpLinkedField.clear();
- Control::dispose();
-}
-
void Slider::ImplInitSettings()
{
vcl::Window* pParent = GetParent();
@@ -213,12 +205,6 @@ void Slider::ImplUpdateRects( bool bUpdate )
}
}
-void Slider::ImplUpdateLinkedField()
-{
- if (mpLinkedField)
- mpLinkedField->SetValue(mnThumbPos);
-}
-
long Slider::ImplCalcThumbPos( long nPixPos )
{
// calculate position
@@ -770,7 +756,6 @@ void Slider::Tracking( const TrackingEvent& rTEvt )
{
ImplUpdateRects();
Update();
- ImplUpdateLinkedField();
if ( nOldPos != mnThumbPos )
{
Slide();
@@ -939,7 +924,6 @@ void Slider::SetRange( const Range& rRange )
mnThumbPos = mnMaxRange;
if ( mnThumbPos < mnMinRange )
mnThumbPos = mnMinRange;
- ImplUpdateLinkedField();
CompatStateChanged( StateChangedType::Data );
}
}
@@ -954,7 +938,6 @@ void Slider::SetThumbPos( long nNewThumbPos )
if ( mnThumbPos != nNewThumbPos )
{
mnThumbPos = nNewThumbPos;
- ImplUpdateLinkedField();
CompatStateChanged( StateChangedType::Data );
}
}