summaryrefslogtreecommitdiff
path: root/sfx2/source/appl/fileobj.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-04-20 13:39:38 +0200
committerTomaž Vajngerl <quikee@gmail.com>2018-04-21 04:12:04 +0200
commit94acabe8d0cb555e76635c4bceeb48a14bd16a2b (patch)
tree5342dac802e5ae009c12734bb2d23e482a6166f1 /sfx2/source/appl/fileobj.cxx
parent9374352f242d2dcfd39a3a6f0504efbaf1abb2dc (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/source/appl/fileobj.cxx')
-rw-r--r--sfx2/source/appl/fileobj.cxx41
1 files changed, 0 insertions, 41 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