diff options
author | Thomas Collerton <tom.coll91@gmail.com> | 2012-04-04 17:10:01 +0200 |
---|---|---|
committer | Matúš Kukan <matus.kukan@gmail.com> | 2012-04-06 12:41:38 +0200 |
commit | 9f92346e7c711786243d41bcd952b61cc922a21f (patch) | |
tree | 87383cf0aec184144505a35a71e654bf8be6cea3 /vcl | |
parent | c282d0a3d838433a44f953c2681f5df71551f34b (diff) |
Remove unused code (vcl)
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/inc/vcl/slider.hxx | 3 | ||||
-rw-r--r-- | vcl/source/control/slider.cxx | 28 |
2 files changed, 0 insertions, 31 deletions
diff --git a/vcl/inc/vcl/slider.hxx b/vcl/inc/vcl/slider.hxx index 15f049555386..c29959c6b4ad 100644 --- a/vcl/inc/vcl/slider.hxx +++ b/vcl/inc/vcl/slider.hxx @@ -88,7 +88,6 @@ private: public: Slider( Window* pParent, WinBits nStyle = WB_HORZ ); - Slider( Window* pParent, const ResId& rResId ); virtual void MouseButtonDown( const MouseEvent& rMEvt ); virtual void MouseButtonUp( const MouseEvent& rMEvt ); @@ -107,9 +106,7 @@ public: { mbFullDrag = bEnable; } sal_Bool IsDragEnabled() const { return mbFullDrag; } - void SetRangeMin( long nNewRange ); long GetRangeMin() const { return mnMinRange; } - void SetRangeMax( long nNewRange ); long GetRangeMax() const { return mnMaxRange; } void SetRange( const Range& rRange ); Range GetRange() const { return Range( GetRangeMin(), GetRangeMax() ); } diff --git a/vcl/source/control/slider.cxx b/vcl/source/control/slider.cxx index 4ef3afc76c0f..dc79ca7026b0 100644 --- a/vcl/source/control/slider.cxx +++ b/vcl/source/control/slider.cxx @@ -104,20 +104,6 @@ Slider::Slider( Window* pParent, WinBits nStyle ) : // ----------------------------------------------------------------------- -Slider::Slider( Window* pParent, const ResId& rResId ) : - Control( WINDOW_SLIDER ) -{ - rResId.SetRT( RSC_SCROLLBAR ); - WinBits nStyle = ImplInitRes( rResId ); - ImplInit( pParent, nStyle ); - ImplLoadRes( rResId ); - - if ( !(nStyle & WB_HIDE) ) - Show(); -} - -// ----------------------------------------------------------------------- - void Slider::ImplLoadRes( const ResId& rResId ) { Control::ImplLoadRes( rResId ); @@ -1003,20 +989,6 @@ void Slider::EndSlide() // ----------------------------------------------------------------------- -void Slider::SetRangeMin( long nNewRange ) -{ - SetRange( Range( nNewRange, GetRangeMax() ) ); -} - -// ----------------------------------------------------------------------- - -void Slider::SetRangeMax( long nNewRange ) -{ - SetRange( Range( GetRangeMin(), nNewRange ) ); -} - -// ----------------------------------------------------------------------- - void Slider::SetRange( const Range& rRange ) { // Range einpassen |