diff options
author | Noel Grandin <noel@peralex.com> | 2016-05-25 09:05:21 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-05-26 07:50:33 +0000 |
commit | 74713b34a36577f19eb3194246de73fa4f2bb741 (patch) | |
tree | 334f601b030923ab621a92bae3f512ff67c99374 /comphelper | |
parent | 132f7b2a8cc986ee79c4124ed2bc368d6dfaa418 (diff) |
loplugin:unusedmethods
Change-Id: Ib36bc0e87d00abb638cbfec511cd13b6179eabda
Reviewed-on: https://gerrit.libreoffice.org/25431
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'comphelper')
-rw-r--r-- | comphelper/source/container/embeddedobjectcontainer.cxx | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/comphelper/source/container/embeddedobjectcontainer.cxx b/comphelper/source/container/embeddedobjectcontainer.cxx index 1850c76eec45..65d41aa40b57 100644 --- a/comphelper/source/container/embeddedobjectcontainer.cxx +++ b/comphelper/source/container/embeddedobjectcontainer.cxx @@ -1143,35 +1143,6 @@ uno::Reference < io::XInputStream > EmbeddedObjectContainer::GetGraphicStream( c return GetGraphicStream( GetEmbeddedObjectName( xObj ), pMediaType ); } -uno::Reference < io::XInputStream > EmbeddedObjectContainer::GetObjectStream( const OUString& aName, OUString* pMediaType ) -{ - uno::Reference < io::XInputStream > xInputStream; - - SAL_WARN_IF( aName.isEmpty(), "comphelper.container", "Retrieving stream for unknown object!" ); - if ( !aName.isEmpty() ) - { - try - { - uno::Reference < io::XStream > xStream = pImpl->mxStorage->cloneStreamElement( aName ); //get a readonly clone - xInputStream = xStream->getInputStream(); - if ( pMediaType ) - { - uno::Reference < beans::XPropertySet > xSet( xInputStream, uno::UNO_QUERY ); - if ( xSet.is() ) - { - uno::Any aAny = xSet->getPropertyValue("MediaType"); - aAny >>= *pMediaType; - } - } - } - catch (const uno::Exception&) - { - } - } - - return xInputStream; -} - bool EmbeddedObjectContainer::InsertGraphicStream( const css::uno::Reference < css::io::XInputStream >& rStream, const OUString& rObjectName, const OUString& rMediaType ) { try |