comphelper/source/misc/accessiblekeybindinghelper.cxx | 20 ------------------ include/comphelper/accessiblekeybindinghelper.hxx | 1 2 files changed, 21 deletions(-)
New commits: commit 36b988312ae8013deefcdf4800592230e7c95ad8 Author: Caolán McNamara <caolan.mcnam...@collabora.com> AuthorDate: Tue Sep 17 17:27:13 2024 +0100 Commit: Caolán McNamara <caolan.mcnam...@collabora.com> CommitDate: Wed Sep 18 11:45:21 2024 +0200 cid#1555574 drop unused copy ctor Change-Id: Ibaad87cc2f481f3bc7f726ecde0c466a563a96a7 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173588 Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com> Tested-by: Jenkins diff --git a/comphelper/source/misc/accessiblekeybindinghelper.cxx b/comphelper/source/misc/accessiblekeybindinghelper.cxx index d1db69b98fa8..88c1edd348ed 100644 --- a/comphelper/source/misc/accessiblekeybindinghelper.cxx +++ b/comphelper/source/misc/accessiblekeybindinghelper.cxx @@ -26,34 +26,20 @@ namespace comphelper { - - using namespace ::com::sun::star; // MT 04/2003: was ::drafts::com::sun::star - otherwise too many changes using namespace ::com::sun::star::uno; using namespace ::com::sun::star::lang; using namespace ::com::sun::star::accessibility; - // OAccessibleKeyBindingHelper - - OAccessibleKeyBindingHelper::OAccessibleKeyBindingHelper() { } - - OAccessibleKeyBindingHelper::OAccessibleKeyBindingHelper( const OAccessibleKeyBindingHelper& rHelper ) - : cppu::WeakImplHelper<XAccessibleKeyBinding>( rHelper ) - , m_aKeyBindings( rHelper.m_aKeyBindings ) - { - } - - OAccessibleKeyBindingHelper::~OAccessibleKeyBindingHelper() { } - void OAccessibleKeyBindingHelper::AddKeyBinding( const Sequence< awt::KeyStroke >& rKeyBinding ) { std::scoped_lock aGuard( m_aMutex ); @@ -61,17 +47,13 @@ namespace comphelper m_aKeyBindings.push_back( rKeyBinding ); } - void OAccessibleKeyBindingHelper::AddKeyBinding( const awt::KeyStroke& rKeyStroke ) { std::scoped_lock aGuard( m_aMutex ); m_aKeyBindings.push_back( { rKeyStroke } ); } - // XAccessibleKeyBinding - - sal_Int32 OAccessibleKeyBindingHelper::getAccessibleKeyBindingCount() { std::scoped_lock aGuard( m_aMutex ); @@ -79,7 +61,6 @@ namespace comphelper return m_aKeyBindings.size(); } - Sequence< awt::KeyStroke > OAccessibleKeyBindingHelper::getAccessibleKeyBinding( sal_Int32 nIndex ) { std::scoped_lock aGuard( m_aMutex ); @@ -90,7 +71,6 @@ namespace comphelper return m_aKeyBindings[nIndex]; } - } // namespace comphelper diff --git a/include/comphelper/accessiblekeybindinghelper.hxx b/include/comphelper/accessiblekeybindinghelper.hxx index fe6b03521f5b..c1b8782be0e4 100644 --- a/include/comphelper/accessiblekeybindinghelper.hxx +++ b/include/comphelper/accessiblekeybindinghelper.hxx @@ -49,7 +49,6 @@ namespace comphelper public: OAccessibleKeyBindingHelper(); - OAccessibleKeyBindingHelper( const OAccessibleKeyBindingHelper& rHelper ); /// @throws css::uno::RuntimeException void AddKeyBinding( const css::uno::Sequence< css::awt::KeyStroke >& rKeyBinding );