diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-04-20 13:39:38 +0200 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2018-04-21 04:12:04 +0200 |
commit | 94acabe8d0cb555e76635c4bceeb48a14bd16a2b (patch) | |
tree | 5342dac802e5ae009c12734bb2d23e482a6166f1 /sfx2 | |
parent | 9374352f242d2dcfd39a3a6f0504efbaf1abb2dc (diff) |
loplugin:unusedmethods
Change-Id: I9dc6e81149eae3ba2284fa7fe608dd9252503dce
Reviewed-on: https://gerrit.libreoffice.org/53197
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/appl/fileobj.cxx | 41 | ||||
-rw-r--r-- | sfx2/source/appl/fileobj.hxx | 1 |
2 files changed, 0 insertions, 42 deletions
diff --git a/sfx2/source/appl/fileobj.cxx b/sfx2/source/appl/fileobj.cxx index d785cec58fa8..84e2371efe6f 100644 --- a/sfx2/source/appl/fileobj.cxx +++ b/sfx2/source/appl/fileobj.cxx @@ -194,47 +194,6 @@ bool SvFileObject::LoadFile_Impl() } -bool SvFileObject::GetGraphic_Impl( Graphic& rGrf, SvStream* pStream ) -{ - GraphicFilter& rGF = GraphicFilter::GetGraphicFilter(); - - const sal_uInt16 nFilter = !sFilter.isEmpty() && rGF.GetImportFormatCount() - ? rGF.GetImportFormatNumber( sFilter ) - : GRFILTER_FORMAT_DONTKNOW; - - ErrCode nRes; - - // To avoid that a native link is created - if( !rGrf.IsGfxLink() && - !rGrf.GetContext() ) - rGrf.SetGfxLink( GfxLink() ); - - if( !pStream ) - nRes = xMed.is() ? ERRCODE_GRFILTER_OPENERROR - : rGF.ImportGraphic( rGrf, INetURLObject(sFileNm), - nFilter ); - else - { - pStream->Seek( STREAM_SEEK_TO_BEGIN ); - - // #i123042# for e.g. SVG the path is needed, see same TaskID in svx for more info - nRes = rGF.ImportGraphic( rGrf, sFileNm, *pStream, nFilter ); - } - - if( pStream && ERRCODE_IO_PENDING == pStream->GetError() ) - pStream->ResetError(); - - if( nRes ) - { - if( xMed.is() && !pStream ) - SAL_WARN( "sfx.appl", "Graphic error [" << nRes << "] - [" << xMed->GetPhysicalName() << "] URL[" << sFileNm << "]" ); - else - SAL_WARN( "sfx.appl", "Graphic error [" << nRes << "] - [" << sFileNm << "]" ); - } - - return ERRCODE_NONE == nRes; -} - /** detect the filter of the given file @param _rURL diff --git a/sfx2/source/appl/fileobj.hxx b/sfx2/source/appl/fileobj.hxx index 86219ef5a1d5..b08cd29e477c 100644 --- a/sfx2/source/appl/fileobj.hxx +++ b/sfx2/source/appl/fileobj.hxx @@ -47,7 +47,6 @@ class SvFileObject : public sfx2::SvLinkSource bool bClearMedium : 1; bool bStateChangeCalled : 1; - bool GetGraphic_Impl( Graphic&, SvStream* pStream ); bool LoadFile_Impl(); void SendStateChg_Impl( sfx2::LinkManager::LinkState nState ); |