[Libreoffice-commits] core.git: svx/source

Stephan Bergmann sbergman at redhat.com
Fri Jun 30 16:54:21 UTC 2017


 svx/source/gallery2/galtheme.cxx |    9 +--------
 1 file changed, 1 insertion(+), 8 deletions(-)

New commits:
commit a429d4317d2d4f9d6a1a39d996ee9fa41096d741
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Fri Jun 30 18:53:19 2017 +0200

    aThemeName is unused
    
    ...ever since fd069bee7e57ad529c3c0974559fd2d84ec3151a "initial import"
    
    Change-Id: I7412d3e72aef6835a0d18c5849d2664ba21be057

diff --git a/svx/source/gallery2/galtheme.cxx b/svx/source/gallery2/galtheme.cxx
index 3a7377d65ff5..4b3576eda7b3 100644
--- a/svx/source/gallery2/galtheme.cxx
+++ b/svx/source/gallery2/galtheme.cxx
@@ -1368,23 +1368,16 @@ SvStream& GalleryTheme::ReadData( SvStream& rIStm )
 {
     sal_uInt32          nCount;
     sal_uInt16          nVersion;
-    OUString            aThemeName;
-    rtl_TextEncoding    nTextEncoding;
 
     rIStm.ReadUInt16( nVersion );
-    OString aTmpStr = read_uInt16_lenPrefixed_uInt8s_ToOString(rIStm);
+    read_uInt16_lenPrefixed_uInt8s_ToOString(rIStm);
     rIStm.ReadUInt32( nCount );
 
     if( nVersion >= 0x0004 )
     {
         sal_uInt16 nTmp16;
         rIStm.ReadUInt16( nTmp16 );
-        nTextEncoding = (rtl_TextEncoding) nTmp16;
     }
-    else
-        nTextEncoding = RTL_TEXTENCODING_UTF8;
-
-    aThemeName = OStringToOUString(aTmpStr, nTextEncoding);
 
     if( nCount <= ( 1L << 14 ) )
     {


More information about the Libreoffice-commits mailing list