diff options
author | Noel Grandin <noel@peralex.com> | 2015-08-04 16:28:49 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2015-08-05 09:39:22 +0000 |
commit | 403c13487c36f4200adf0986c5d11398f719cd7a (patch) | |
tree | 21a4acf87dce1e6c8772f5cbcff3c2a3de21f4ba /accessibility | |
parent | 10560949f90e08fe4a04dd91c7d388c4998100e8 (diff) |
loplugin:unusedmethods
Change-Id: I6801618efb5a66d24156fa429e026acb6ca03aba
Reviewed-on: https://gerrit.libreoffice.org/17506
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'accessibility')
-rw-r--r-- | accessibility/inc/accessibility/extended/accessibletabbarpage.hxx | 15 | ||||
-rw-r--r-- | accessibility/source/extended/accessibletabbarpage.cxx | 25 |
2 files changed, 7 insertions, 33 deletions
diff --git a/accessibility/inc/accessibility/extended/accessibletabbarpage.hxx b/accessibility/inc/accessibility/extended/accessibletabbarpage.hxx index 4959ab659679..54abbf74f485 100644 --- a/accessibility/inc/accessibility/extended/accessibletabbarpage.hxx +++ b/accessibility/inc/accessibility/extended/accessibletabbarpage.hxx @@ -51,26 +51,25 @@ namespace accessibility private: sal_uInt16 m_nPageId; - bool m_bEnabled; - bool m_bShowing; - bool m_bSelected; + bool m_bEnabled; + bool m_bShowing; + bool m_bSelected; OUString m_sPageText; css::uno::Reference< css::accessibility::XAccessible > m_xParent; protected: - bool IsEnabled(); - bool IsShowing(); - bool IsSelected(); + bool IsEnabled(); + bool IsShowing(); + bool IsSelected(); - void SetEnabled( bool bEnabled ); void SetShowing( bool bShowing ); void SetSelected( bool bSelected ); void SetPageText( const OUString& sPageText ); sal_uInt16 GetPageId() const { return m_nPageId; } - void FillAccessibleStateSet( utl::AccessibleStateSetHelper& rStateSet ); + void FillAccessibleStateSet( utl::AccessibleStateSetHelper& rStateSet ); // OCommonAccessibleComponent virtual css::awt::Rectangle implGetBounds( ) throw (css::uno::RuntimeException) SAL_OVERRIDE; diff --git a/accessibility/source/extended/accessibletabbarpage.cxx b/accessibility/source/extended/accessibletabbarpage.cxx index c3d6533261ee..0c1479f86337 100644 --- a/accessibility/source/extended/accessibletabbarpage.cxx +++ b/accessibility/source/extended/accessibletabbarpage.cxx @@ -102,31 +102,6 @@ namespace accessibility } - - void AccessibleTabBarPage::SetEnabled( bool bEnabled ) - { - if ( m_bEnabled != bEnabled ) - { - Any aOldValue[2], aNewValue[2]; - if ( m_bEnabled ) - { - aOldValue[0] <<= AccessibleStateType::SENSITIVE; - aOldValue[1] <<= AccessibleStateType::ENABLED; - } - else - { - - aNewValue[0] <<= AccessibleStateType::ENABLED; - aNewValue[1] <<= AccessibleStateType::SENSITIVE; - } - m_bEnabled = bEnabled; - NotifyAccessibleEvent( AccessibleEventId::STATE_CHANGED, aOldValue[0], aNewValue[0] ); - NotifyAccessibleEvent( AccessibleEventId::STATE_CHANGED, aOldValue[1], aNewValue[1] ); - } - } - - - void AccessibleTabBarPage::SetShowing( bool bShowing ) { if ( m_bShowing != bShowing ) |