[Libreoffice-commits] .: fpicker/source
Caolán McNamara
caolan at kemper.freedesktop.org
Fri Dec 3 12:38:56 PST 2010
fpicker/source/unx/gnome/SalGtkFilePicker.cxx | 46 --------------------------
fpicker/source/unx/gnome/SalGtkFilePicker.hxx | 1
2 files changed, 47 deletions(-)
New commits:
commit 2a962d264c7d4c198d776f539325d13d506a2903
Author: Caolán McNamara <caolanm at redhat.com>
Date: Fri Dec 3 20:38:48 2010 +0000
callcatcher: uncalled and uncallable methods
diff --git a/fpicker/source/unx/gnome/SalGtkFilePicker.cxx b/fpicker/source/unx/gnome/SalGtkFilePicker.cxx
index 7de4971..17bed67 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 5c52d9a..d280585 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:
More information about the Libreoffice-commits
mailing list