diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2018-03-09 22:24:31 +0900 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2018-03-10 02:11:58 +0100 |
commit | d0b36b780dca966bc5e8682d8dff635072124603 (patch) | |
tree | e5705350ad7a566d106a7a6f2e087e3ff104d847 /svtools | |
parent | 1dc39d36806cc9382763bfd0b74e3d28e3fa1365 (diff) |
oox: remove unused methods that rely on GraphicObject URL
Change-Id: Ie68ccfa8d802bb284da8bb4af69882f4b66a3dac
Reviewed-on: https://gerrit.libreoffice.org/51010
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/graphic/grfmgr.cxx | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/svtools/source/graphic/grfmgr.cxx b/svtools/source/graphic/grfmgr.cxx index 5e0c2e57a83b..d025275e39f8 100644 --- a/svtools/source/graphic/grfmgr.cxx +++ b/svtools/source/graphic/grfmgr.cxx @@ -1045,30 +1045,6 @@ bool GraphicObject::isGraphicObjectUniqueIdURL(OUString const & rURL) return rURL.startsWith(aPrefix); } -GraphicObject GraphicObject::CreateGraphicObjectFromURL(OUString const & rURL) -{ - if (GraphicObject::isGraphicObjectUniqueIdURL(rURL)) - { - SAL_WARN("vcl", "Deprecated URL '" << rURL << "' was used to create a GraphicObject"); - - // graphic manager url - OString aUniqueID(OUStringToOString(rURL.copy(sizeof(UNO_NAME_GRAPHOBJ_URLPREFIX) - 1), RTL_TEXTENCODING_UTF8)); - return GraphicObject( aUniqueID ); - } - else - { - Graphic aGraphic; - if ( !rURL.isEmpty() ) - { - std::unique_ptr<SvStream> pStream(utl::UcbStreamHelper::CreateStream( rURL, StreamMode::READ )); - if( pStream ) - GraphicConverter::Import( *pStream, aGraphic ); - } - - return GraphicObject( aGraphic ); - } -} - void GraphicObject::InspectForGraphicObjectImageURL( const Reference< XInterface >& xIf, std::vector< OUString >& rvEmbedImgUrls ) { |