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

Caolán McNamara caolanm at redhat.com
Sat Dec 24 16:27:20 UTC 2016


 framework/source/uiconfiguration/imagemanagerimpl.cxx |    1 -
 1 file changed, 1 deletion(-)

New commits:
commit 3c96a9c431cda4c3a5b76277c3081f1a2e1786f2
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Sat Dec 24 16:24:32 2016 +0000

    unused Image in framework, luckily because uses GetImage on pos not id
    
    Change-Id: I97dab3bc1025cd4804910c228235b49216f3afe7

diff --git a/framework/source/uiconfiguration/imagemanagerimpl.cxx b/framework/source/uiconfiguration/imagemanagerimpl.cxx
index b2bae3f..d900733 100644
--- a/framework/source/uiconfiguration/imagemanagerimpl.cxx
+++ b/framework/source/uiconfiguration/imagemanagerimpl.cxx
@@ -889,7 +889,6 @@ throw ( css::lang::IllegalArgumentException,
             sal_uInt16 nPos = pImageList->GetImagePos( aCommandURLSequence[i] );
             if ( nPos != IMAGELIST_IMAGE_NOTFOUND )
             {
-                Image aImage = pImageList->GetImage( nPos );
                 sal_uInt16 nId   = pImageList->GetImageId( nPos );
                 pImageList->RemoveImage( nId );
 


More information about the Libreoffice-commits mailing list