diff options
author | Noel Grandin <noel@peralex.com> | 2016-01-19 15:17:30 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-01-20 08:13:51 +0000 |
commit | 4ff5a5558472beee85eb1234dcc2aa2ed9000f6c (patch) | |
tree | b2a0a83933064b7a22db0e27c0a3d8b7339053de /chart2/source/inc/EventListenerHelper.hxx | |
parent | 3179e8f7e6ce550bbe766ed730e68b0374944dd5 (diff) |
loplugin:unusedmethods
Change-Id: Ib2dc804f55d1a96ae01f2cf31b7d55956040a72e
Reviewed-on: https://gerrit.libreoffice.org/21603
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'chart2/source/inc/EventListenerHelper.hxx')
-rw-r--r-- | chart2/source/inc/EventListenerHelper.hxx | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/chart2/source/inc/EventListenerHelper.hxx b/chart2/source/inc/EventListenerHelper.hxx index 6fe8b9f0e9ff..7e190df645a0 100644 --- a/chart2/source/inc/EventListenerHelper.hxx +++ b/chart2/source/inc/EventListenerHelper.hxx @@ -73,44 +73,6 @@ private: ::com::sun::star::uno::Reference< ::com::sun::star::lang::XEventListener > m_xListener; }; -template< class Pair > -struct addListenerToMappedElementFunctor : public ::std::unary_function< Pair, void > -{ - explicit addListenerToMappedElementFunctor( const ::com::sun::star::uno::Reference< - ::com::sun::star::lang::XEventListener > & xListener ) : - m_xListener( xListener ) - {} - - void operator() ( const Pair & aPair ) - { - ::com::sun::star::uno::Reference< ::com::sun::star::lang::XComponent > - xBroadcaster( aPair.second, ::com::sun::star::uno::UNO_QUERY ); - if( xBroadcaster.is() && m_xListener.is()) - xBroadcaster->addEventListener( m_xListener ); - } -private: - ::com::sun::star::uno::Reference< ::com::sun::star::lang::XEventListener > m_xListener; -}; - -template< class Pair > -struct removeListenerFromMappedElementFunctor : public ::std::unary_function< Pair, void > -{ - explicit removeListenerFromMappedElementFunctor( const ::com::sun::star::uno::Reference< - ::com::sun::star::lang::XEventListener > & xListener ) : - m_xListener( xListener ) - {} - - void operator() ( const Pair & aPair ) - { - ::com::sun::star::uno::Reference< ::com::sun::star::lang::XComponent > - xBroadcaster( aPair.second, ::com::sun::star::uno::UNO_QUERY ); - if( xBroadcaster.is() && m_xListener.is()) - xBroadcaster->removeEventListener( m_xListener ); - } -private: - ::com::sun::star::uno::Reference< ::com::sun::star::lang::XEventListener > m_xListener; -}; - } // namespace impl template< class InterfaceRef > |