summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2010-12-03 20:38:48 +0000
committerCaolán McNamara <caolanm@redhat.com>2010-12-03 20:38:48 +0000
commit2a962d264c7d4c198d776f539325d13d506a2903 (patch)
tree9e5644ecc91bee8aa674a5c8c827dae6444c1acb
parentea35a7cd1fbc7c63f484b62175c2f67c315ea6c7 (diff)
callcatcher: uncalled and uncallable methods
-rw-r--r--fpicker/source/unx/gnome/SalGtkFilePicker.cxx46
-rw-r--r--fpicker/source/unx/gnome/SalGtkFilePicker.hxx1
2 files changed, 0 insertions, 47 deletions
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<XFilePickerListener> * )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<XFilePickerListener> 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: