diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-07-22 09:19:52 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-07-22 10:17:52 +0100 |
commit | 60c6906147e5b6fe8aafcd9487283478ff0d3c6e (patch) | |
tree | 9946b8bbb61bb595f6a0d1d91072fd288501c34b /sfx2/source | |
parent | e00416c7258e0400464d09cd5e955d8fb5cb76a0 (diff) |
callcatcher: remove unused methods
Diffstat (limited to 'sfx2/source')
-rw-r--r-- | sfx2/source/bastyp/helper.cxx | 27 | ||||
-rw-r--r-- | sfx2/source/bastyp/progress.cxx | 24 | ||||
-rw-r--r-- | sfx2/source/doc/docfile.cxx | 34 | ||||
-rw-r--r-- | sfx2/source/doc/new.cxx | 13 | ||||
-rw-r--r-- | sfx2/source/doc/objmisc.cxx | 27 | ||||
-rw-r--r-- | sfx2/source/inc/helper.hxx | 1 | ||||
-rw-r--r-- | sfx2/source/inc/objshimp.hxx | 2 | ||||
-rw-r--r-- | sfx2/source/inc/preview.hxx | 3 |
8 files changed, 0 insertions, 131 deletions
diff --git a/sfx2/source/bastyp/helper.cxx b/sfx2/source/bastyp/helper.cxx index 15d40a0d56..e00fbda6c3 100644 --- a/sfx2/source/bastyp/helper.cxx +++ b/sfx2/source/bastyp/helper.cxx @@ -121,33 +121,6 @@ sal_Bool SfxContentHelper::IsDocument( const String& rContent ) // ----------------------------------------------------------------------- -sal_Bool SfxContentHelper::Kill( const String& rContent ) -{ - sal_Bool bRet = sal_True; - INetURLObject aDeleteObj( rContent ); - DBG_ASSERT( aDeleteObj.GetProtocol() != INET_PROT_NOT_VALID, "Invalid URL!" ); - - try - { - ::ucbhelper::Content aCnt( aDeleteObj.GetMainURL( INetURLObject::NO_DECODE ), uno::Reference< ucb::XCommandEnvironment > () ); - aCnt.executeCommand( OUString(RTL_CONSTASCII_USTRINGPARAM("delete")), uno::makeAny( sal_Bool( sal_True ) ) ); - } - catch( const ucb::CommandAbortedException& ) - { - DBG_WARNING( "CommandAbortedException" ); - bRet = sal_False; - } - catch( const uno::Exception& ) - { - DBG_ERRORFILE( "Any other exception" ); - bRet = sal_False; - } - - return bRet; -} - -// ----------------------------------------------------------------------- - uno::Sequence < OUString > SfxContentHelper::GetResultSet( const String& rURL ) { StringList_Impl* pList = NULL; diff --git a/sfx2/source/bastyp/progress.cxx b/sfx2/source/bastyp/progress.cxx index 625440d297..1482b0458d 100644 --- a/sfx2/source/bastyp/progress.cxx +++ b/sfx2/source/bastyp/progress.cxx @@ -258,13 +258,6 @@ void SfxProgress::SetText // ----------------------------------------------------------------------- -const String& SfxProgress::GetStateText_Impl() const -{ - return pImp->aStateText; -} - -// ----------------------------------------------------------------------- - // Required in App data static sal_uIntPtr nLastTime = 0; @@ -669,21 +662,4 @@ void SfxProgress::LeaveLock() pImp->nRescheduleLocks--; } -// ----------------------------------------------------------------------- - -bool SfxProgress::StatusBarManagerGone_Impl -( - SfxStatusBarManager * // This <SfxStatusBarManager> will be destroyed -) - -/* [Description] - - Internal method for notifying the SfxProgress that the specified - SfxStatusBarManger will be destroyed so that the Progress can let go of it. -*/ - -{ - return sal_True; -} - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sfx2/source/doc/docfile.cxx b/sfx2/source/doc/docfile.cxx index 5386853be5..bd1f9b1314 100644 --- a/sfx2/source/doc/docfile.cxx +++ b/sfx2/source/doc/docfile.cxx @@ -323,17 +323,6 @@ public: ~SfxMedium_Impl(); }; -void SfxMedium::DataAvailable_Impl() -{ - pImp->aAvailableLink.ClearPendingCall(); - pImp->aAvailableLink.Call( NULL ); -} - -void SfxMedium::Cancel_Impl() -{ - SetError( ERRCODE_IO_GENERAL, ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( OSL_LOG_PREFIX ) ) ); -} - //------------------------------------------------------------------ SfxMedium_Impl::SfxMedium_Impl( SfxMedium* pAntiImplP ) : SvCompatWeakBase( pAntiImplP ), @@ -2587,13 +2576,6 @@ const SfxFilter* SfxMedium::GetOrigFilter( sal_Bool bNotCurrent ) const //---------------------------------------------------------------- -void SfxMedium::SetOrigFilter_Impl( const SfxFilter* pOrigFilter ) -{ - pImp->pOrigFilter = pOrigFilter; -} - -//------------------------------------------------------------------ - sal_uInt32 SfxMedium::CreatePasswordToModifyHash( const ::rtl::OUString& aPasswd, sal_Bool bWriter ) { sal_uInt32 nHash = 0; @@ -2753,10 +2735,6 @@ void SfxMedium::CloseStreams_Impl() //------------------------------------------------------------------ -void SfxMedium::RefreshName_Impl() -{ -} - void SfxMedium::SetIsRemote_Impl() { INetURLObject aObj( GetName() ); @@ -3040,13 +3018,6 @@ const INetURLObject& SfxMedium::GetURLObject() const //---------------------------------------------------------------- -const String& SfxMedium::GetPreRedirectedURL() const -{ - return pImp->aPreRedirectionURL; -} - -//---------------------------------------------------------------- - void SfxMedium::SetReferer( const String& rRefer ) { pImp->aReferer = rRefer; @@ -3144,11 +3115,6 @@ SvCompatWeakHdl* SfxMedium::GetHdl() return pImp->GetHdl(); } -sal_Bool SfxMedium::IsDownloadDone_Impl() -{ - return pImp->bDownloadDone; -} - ::com::sun::star::uno::Reference< ::com::sun::star::io::XInputStream > SfxMedium::GetInputStream() { if ( !pImp->xInputStream.is() ) diff --git a/sfx2/source/doc/new.cxx b/sfx2/source/doc/new.cxx index 0695d9df43..f487e6699a 100644 --- a/sfx2/source/doc/new.cxx +++ b/sfx2/source/doc/new.cxx @@ -104,19 +104,6 @@ void SfxPreviewBase_Impl::Resize() Invalidate(); } -void SfxPreviewBase_Impl::SetGDIFile( ::boost::shared_ptr<GDIMetaFile> pFile ) -{ - pMetaFile = pFile; - Invalidate(); -} - -SfxFrameWindow* SfxPreviewWin_Impl::PreviewFactory( - SfxFrame* pFrame, const String& /*rName*/ ) -{ - return new SfxFrameWindow( new SfxPreviewWin_Impl( - &pFrame->GetCurrentViewFrame()->GetWindow() ) ); -} - void SfxPreviewWin_Impl::ImpPaint( const Rectangle&, GDIMetaFile* pFile, Window* pWindow ) { diff --git a/sfx2/source/doc/objmisc.cxx b/sfx2/source/doc/objmisc.cxx index 98ded9fdf3..eb5798acd4 100644 --- a/sfx2/source/doc/objmisc.cxx +++ b/sfx2/source/doc/objmisc.cxx @@ -2079,33 +2079,6 @@ sal_Bool SfxObjectShell::UseInteractionToHandleError( return bResult; } -sal_Bool SfxObjectShell_Impl::NeedsOfficeUpdateDialog() -{ - // if the configuration is not available for any reason, the default behavior is to show the message - sal_Bool bResult = sal_True; - - try - { - uno::Reference< lang::XMultiServiceFactory > xServiceManager( ::comphelper::getProcessServiceFactory(), uno::UNO_SET_THROW ); - uno::Reference< uno::XInterface > xCommonConfig( - ::comphelper::ConfigurationHelper::openConfig( - xServiceManager, - ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "/org.openoffice.Office.Common" ) ), - ::comphelper::ConfigurationHelper::E_STANDARD ), - uno::UNO_SET_THROW ); - - ::comphelper::ConfigurationHelper::readRelativeKey( - xCommonConfig, - ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "Load/" ) ), - ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "ShowOfficeUpdateDialog" ) ) ) >>= bResult; - } - catch( uno::Exception& ) - { - } - - return bResult; -} - sal_Int16 SfxObjectShell_Impl::getCurrentMacroExecMode() const { sal_Int16 nImposedExecMode( MacroExecMode::NEVER_EXECUTE ); diff --git a/sfx2/source/inc/helper.hxx b/sfx2/source/inc/helper.hxx index ebad5da12e..5ee62f43b9 100644 --- a/sfx2/source/inc/helper.hxx +++ b/sfx2/source/inc/helper.hxx @@ -43,7 +43,6 @@ class SfxContentHelper { public: static sal_Bool IsDocument( const String& rContent ); - static sal_Bool Kill( const String& rContent ); static ::com::sun::star::uno::Sequence< ::rtl::OUString > GetResultSet( const String& rURL ); diff --git a/sfx2/source/inc/objshimp.hxx b/sfx2/source/inc/objshimp.hxx index 7d2278c70a..b76bf1e9ec 100644 --- a/sfx2/source/inc/objshimp.hxx +++ b/sfx2/source/inc/objshimp.hxx @@ -157,8 +157,6 @@ struct SfxObjectShell_Impl : public ::sfx2::IMacroDocumentAccess SfxObjectShell_Impl( SfxObjectShell& _rDocShell ); virtual ~SfxObjectShell_Impl(); - static sal_Bool NeedsOfficeUpdateDialog(); - // IMacroDocumentAccess overridables virtual sal_Int16 getCurrentMacroExecMode() const; virtual sal_Bool setCurrentMacroExecMode( sal_uInt16 nMacroMode ); diff --git a/sfx2/source/inc/preview.hxx b/sfx2/source/inc/preview.hxx index e6feb4ef55..037bdd072a 100644 --- a/sfx2/source/inc/preview.hxx +++ b/sfx2/source/inc/preview.hxx @@ -48,7 +48,6 @@ public: SfxPreviewBase_Impl( Window* pParent ); ~SfxPreviewBase_Impl( ); void SetObjectShell( SfxObjectShell* pObj ); - void SetGDIFile( ::boost::shared_ptr<GDIMetaFile> pFile ); virtual void Resize(); }; @@ -66,8 +65,6 @@ public: : SfxPreviewBase_Impl( pParent ){}; static void ImpPaint( const Rectangle& rRect, GDIMetaFile* pFile, Window* pWindow ); - static SfxFrameWindow* - PreviewFactory( SfxFrame* pFrame, const String& rName ); }; #endif |