diff options
author | Takeshi Abe <tabe@fixedpoint.jp> | 2012-04-28 01:12:32 +0900 |
---|---|---|
committer | Takeshi Abe <tabe@fixedpoint.jp> | 2012-04-28 01:19:57 +0900 |
commit | d50f02bec4a70bd26a518e4e76f4a876454ab937 (patch) | |
tree | acd806362a7d6e4d014fa82e05cd1575a39c16b4 /svx/source/gengal | |
parent | 2d9b6917808b76af76a85755b9f24ff4b49ee38b (diff) |
removed dead code
Change-Id: If67f8e981e034890e4fde2280f537fdfff6af0ff
Diffstat (limited to 'svx/source/gengal')
-rw-r--r-- | svx/source/gengal/gengal.cxx | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/svx/source/gengal/gengal.cxx b/svx/source/gengal/gengal.cxx index 0104b70d753d..36a7571c3a27 100644 --- a/svx/source/gengal/gengal.cxx +++ b/svx/source/gengal/gengal.cxx @@ -150,7 +150,6 @@ static void createTheme( rtl::OUString aThemeName, Graphic aGraphic; String aFormat; -#if 1 if ( ! pGalTheme->InsertURL( *aIter ) ) fprintf( stderr, "Failed to import '%s'\n", rtl::OUStringToOString(*aIter, RTL_TEXTENCODING_UTF8).getStr() ); @@ -159,34 +158,6 @@ static void createTheme( rtl::OUString aThemeName, rtl::OUStringToOString(*aIter, RTL_TEXTENCODING_UTF8).getStr(), sal::static_int_cast< unsigned long >( pGalTheme->GetObjectCount() ) ); - -#else // only loads BMPs - SvStream *pStream = ::utl::UcbStreamHelper::CreateStream( *aIter, STREAM_READ ); - if (!pStream) { - fprintf( stderr, "Can't find image to import\n" ); - disposeGallery( pGallery ); - exit (1); - } - *pStream >> aGraphic; - delete pStream; - if( aGraphic.GetType() == GRAPHIC_NONE ) - { - fprintf( stderr, "Failed to load '%s'\n", - rtl::OUStringToOString( *aIter, RTL_TEXTENCODING_UTF8 ).getStr() ); - continue; - } - - SgaObjectBmp aObject( aGraphic, *aIter, aFormat ); - if ( ! aObject.IsValid() ) { - fprintf( stderr, "Failed to create thumbnail for image\n" ); - continue; - } - - if ( ! pGalTheme->InsertObject( aObject ) ) { - fprintf( stderr, "Failed to insert file or URL\n" ); - continue; - } -#endif } pGallery->ReleaseTheme( pGalTheme, aListener ); |