From 2a962d264c7d4c198d776f539325d13d506a2903 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Fri, 3 Dec 2010 20:38:48 +0000 Subject: callcatcher: uncalled and uncallable methods --- fpicker/source/unx/gnome/SalGtkFilePicker.cxx | 46 --------------------------- fpicker/source/unx/gnome/SalGtkFilePicker.hxx | 1 - 2 files changed, 47 deletions(-) (limited to 'fpicker') diff --git a/fpicker/source/unx/gnome/SalGtkFilePicker.cxx b/fpicker/source/unx/gnome/SalGtkFilePicker.cxx index 7de49719ec..17bed677fb 100644 --- a/fpicker/source/unx/gnome/SalGtkFilePicker.cxx +++ b/fpicker/source/unx/gnome/SalGtkFilePicker.cxx @@ -406,52 +406,6 @@ void SAL_CALL SalGtkFilePicker::controlStateChanged( FilePickerEvent aEvent ) if (m_xListener.is()) m_xListener->controlStateChanged( aEvent ); } -//----------------------------------------------------------------------------------------- -// If there are more then one listener the return value of the last one wins -//----------------------------------------------------------------------------------------- - -rtl::OUString SAL_CALL SalGtkFilePicker::helpRequested( FilePickerEvent aEvent ) const -{ - rtl::OUString aHelpText; - - ::cppu::OInterfaceContainerHelper* pICHelper = - rBHelper.getContainer( getCppuType( ( uno::Reference * )0 ) ); - - if( pICHelper ) - { - ::cppu::OInterfaceIteratorHelper iter( *pICHelper ); - - while( iter.hasMoreElements() ) - { - try - { - /* - if there are multiple listeners responding - to this notification the next response - overwrittes the one before if it is not empty - */ - - rtl::OUString aTempString; - - uno::Reference xFPListener( iter.next(), uno::UNO_QUERY ); - if( xFPListener.is() ) - { - aTempString = xFPListener->helpRequested( aEvent ); - if( aTempString.getLength() ) - aHelpText = aTempString; - } - - } - catch( uno::RuntimeException& ) - { - OSL_ENSURE( false, "RuntimeException during event dispatching" ); - } - } - } - - return aHelpText; -} - //===================================================================== struct FilterEntry diff --git a/fpicker/source/unx/gnome/SalGtkFilePicker.hxx b/fpicker/source/unx/gnome/SalGtkFilePicker.hxx index 5c52d9aaad..d280585000 100644 --- a/fpicker/source/unx/gnome/SalGtkFilePicker.hxx +++ b/fpicker/source/unx/gnome/SalGtkFilePicker.hxx @@ -243,7 +243,6 @@ class SalGtkFilePicker : void SAL_CALL fileSelectionChanged( ::com::sun::star::ui::dialogs::FilePickerEvent aEvent ); void SAL_CALL directoryChanged( ::com::sun::star::ui::dialogs::FilePickerEvent aEvent ); - rtl::OUString SAL_CALL helpRequested( ::com::sun::star::ui::dialogs::FilePickerEvent aEvent ) const; void SAL_CALL controlStateChanged( ::com::sun::star::ui::dialogs::FilePickerEvent aEvent ); private: -- cgit v1.2.3