diff options
author | Alexander Bergmann <myaddons@gmx.de> | 2012-02-15 13:15:50 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-02-15 13:15:50 +0000 |
commit | 3626c2cef7c39bda96e2d3bc0d5a53ba1044aadc (patch) | |
tree | 2853ce190654f0826ccd609762bb656cd16877dd /vcl | |
parent | a62395237ed78f982ae74efe5ed8ad7834a2f95b (diff) |
unusedcode.easy: Removed unused code
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/inc/ilstbox.hxx | 1 | ||||
-rw-r--r-- | vcl/inc/image.h | 1 | ||||
-rw-r--r-- | vcl/inc/vcl/button.hxx | 3 | ||||
-rw-r--r-- | vcl/inc/vcl/settings.hxx | 6 | ||||
-rw-r--r-- | vcl/source/app/settings.cxx | 12 | ||||
-rw-r--r-- | vcl/source/control/button.cxx | 8 | ||||
-rw-r--r-- | vcl/source/control/ilstbox.cxx | 7 | ||||
-rw-r--r-- | vcl/source/gdi/impimage.cxx | 5 |
8 files changed, 0 insertions, 43 deletions
diff --git a/vcl/inc/ilstbox.hxx b/vcl/inc/ilstbox.hxx index c1355f033940..cecf3b8d72fe 100644 --- a/vcl/inc/ilstbox.hxx +++ b/vcl/inc/ilstbox.hxx @@ -168,7 +168,6 @@ public: sal_uInt16 GetSelectEntryCount() const; XubString GetSelectEntry( sal_uInt16 nIndex ) const; sal_uInt16 GetSelectEntryPos( sal_uInt16 nIndex ) const; - sal_Bool IsEntrySelected( const XubString& rStr ) const; sal_Bool IsEntryPosSelected( sal_uInt16 nIndex ) const; void SetLastSelected( sal_uInt16 nPos ) { mnLastSelected = nPos; } diff --git a/vcl/inc/image.h b/vcl/inc/image.h index 149775053151..f8abc4eb70c4 100644 --- a/vcl/inc/image.h +++ b/vcl/inc/image.h @@ -114,7 +114,6 @@ struct ImplImageList void AddImage( const ::rtl::OUString &aName, sal_uInt16 nId, const BitmapEx &aBitmapEx ); void RemoveImage( sal_uInt16 nPos ); - sal_uInt16 GetImageCount() const; }; // -------------------- diff --git a/vcl/inc/vcl/button.hxx b/vcl/inc/vcl/button.hxx index b2b812c03f53..85f3f54652f5 100644 --- a/vcl/inc/vcl/button.hxx +++ b/vcl/inc/vcl/button.hxx @@ -509,9 +509,6 @@ private: SAL_DLLPRIVATE ImageButton( const ImageButton & ); SAL_DLLPRIVATE ImageButton & operator= ( const ImageButton & ); -protected: - ImageButton( WindowType nType ); - public: ImageButton( Window* pParent, WinBits nStyle = 0 ); ImageButton( Window* pParent, const ResId& rResId ); diff --git a/vcl/inc/vcl/settings.hxx b/vcl/inc/vcl/settings.hxx index fb05379e4c04..e0110e09171c 100644 --- a/vcl/inc/vcl/settings.hxx +++ b/vcl/inc/vcl/settings.hxx @@ -297,8 +297,6 @@ private: class VCL_DLLPUBLIC KeyboardSettings { - void CopyData(); - private: ImplKeyboardData* mpData; @@ -307,13 +305,9 @@ public: KeyboardSettings( const KeyboardSettings& rSet ); ~KeyboardSettings(); - void SetStandardAccel( const Accelerator& rAccelerator ) - { CopyData(); mpData->maStandardAccel = rAccelerator; } const Accelerator& GetStandardAccel() const { return mpData->maStandardAccel; } - void SetOptions( sal_uLong nOptions ) - { CopyData(); mpData->mnOptions = nOptions; } sal_uLong GetOptions() const { return mpData->mnOptions; } diff --git a/vcl/source/app/settings.cxx b/vcl/source/app/settings.cxx index c2cca2d2f40e..2f0742497f14 100644 --- a/vcl/source/app/settings.cxx +++ b/vcl/source/app/settings.cxx @@ -376,18 +376,6 @@ const KeyboardSettings& KeyboardSettings::operator =( const KeyboardSettings& rS // ----------------------------------------------------------------------- -void KeyboardSettings::CopyData() -{ - // Falls noch andere Referenzen bestehen, dann kopieren - if ( mpData->mnRefCount != 1 ) - { - mpData->mnRefCount--; - mpData = new ImplKeyboardData( *mpData ); - } -} - -// ----------------------------------------------------------------------- - sal_Bool KeyboardSettings::operator ==( const KeyboardSettings& rSet ) const { return mpData == rSet.mpData diff --git a/vcl/source/control/button.cxx b/vcl/source/control/button.cxx index e49e0cbb47a1..9af4551315d6 100644 --- a/vcl/source/control/button.cxx +++ b/vcl/source/control/button.cxx @@ -3960,14 +3960,6 @@ Size CheckBox::GetOptimalSize(WindowSizeType eType) const // ======================================================================= -ImageButton::ImageButton( WindowType nType ) : - PushButton( nType ) -{ - ImplInitStyle(); -} - -// ----------------------------------------------------------------------- - ImageButton::ImageButton( Window* pParent, WinBits nStyle ) : PushButton( pParent, nStyle ) { diff --git a/vcl/source/control/ilstbox.cxx b/vcl/source/control/ilstbox.cxx index ec00069aeb3c..786e28a4c6ef 100644 --- a/vcl/source/control/ilstbox.cxx +++ b/vcl/source/control/ilstbox.cxx @@ -498,13 +498,6 @@ sal_uInt16 ImplEntryList::GetSelectEntryPos( sal_uInt16 nIndex ) const // ----------------------------------------------------------------------- -sal_Bool ImplEntryList::IsEntrySelected( const XubString& rStr ) const -{ - return IsEntryPosSelected( FindEntry( rStr ) ); -} - -// ----------------------------------------------------------------------- - sal_Bool ImplEntryList::IsEntryPosSelected( sal_uInt16 nIndex ) const { ImplEntryType* pImplEntry = GetEntry( nIndex ); diff --git a/vcl/source/gdi/impimage.cxx b/vcl/source/gdi/impimage.cxx index 3517260f0e02..4e7ebed2a3b7 100644 --- a/vcl/source/gdi/impimage.cxx +++ b/vcl/source/gdi/impimage.cxx @@ -123,11 +123,6 @@ void ImplImageList::RemoveImage( sal_uInt16 nPos ) maImages.erase( maImages.begin() + nPos ); } -sal_uInt16 ImplImageList::GetImageCount() const -{ - return sal::static_int_cast< sal_uInt16 >( maImages.size() ); -} - // ----------------- // - ImplImageData - // ----------------- |