diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-01-09 10:35:25 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-01-10 06:29:10 +0000 |
commit | 014b9ac2e4ec22a1eed2fde806edd7a840035a45 (patch) | |
tree | 9047e3932cf0fa46128ab570a69b4dd5d507903f /framework | |
parent | b0229855057ed4d73e73ecd8c501a4564f2237ce (diff) |
loplugin:unusedmethods
Change-Id: Ibe11923601760ded53a277c48631e4893606b2d6
Reviewed-on: https://gerrit.libreoffice.org/32875
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'framework')
-rw-r--r-- | framework/source/uiconfiguration/ImageList.cxx | 24 | ||||
-rw-r--r-- | framework/source/uiconfiguration/ImageList.hxx | 2 |
2 files changed, 0 insertions, 26 deletions
diff --git a/framework/source/uiconfiguration/ImageList.cxx b/framework/source/uiconfiguration/ImageList.cxx index 389c01621330..cdceb4b2e179 100644 --- a/framework/source/uiconfiguration/ImageList.cxx +++ b/framework/source/uiconfiguration/ImageList.cxx @@ -229,11 +229,6 @@ sal_uInt16 ImageList::GetImagePos( sal_uInt16 nId ) const return IMAGELIST_IMAGE_NOTFOUND; } -bool ImageList::HasImageForId( sal_uInt16 nId ) const -{ - return GetImagePos( nId ) != IMAGELIST_IMAGE_NOTFOUND; -} - sal_uInt16 ImageList::GetImagePos( const OUString& rImageName ) const { if( mpImplData && !rImageName.isEmpty() ) @@ -281,25 +276,6 @@ void ImageList::GetImageNames( std::vector< OUString >& rNames ) const } } -Size ImageList::GetImageSize() const -{ - Size aRet; - - if( mpImplData ) - { - aRet = mpImplData->maImageSize; - - // force load of 1st image to see - uncommon case. - if( aRet.Width() == 0 && aRet.Height() == 0 && - !mpImplData->maImages.empty() ) - { - Image aTmp = GetImage( mpImplData->maImages[ 0 ]->mnId ); - aRet = mpImplData->maImageSize = aTmp.GetSizePixel(); - } - } - return aRet; -} - bool ImageList::operator==( const ImageList& rImageList ) const { bool bRet = false; diff --git a/framework/source/uiconfiguration/ImageList.hxx b/framework/source/uiconfiguration/ImageList.hxx index 426a6267bb92..d6db88c45848 100644 --- a/framework/source/uiconfiguration/ImageList.hxx +++ b/framework/source/uiconfiguration/ImageList.hxx @@ -31,7 +31,6 @@ public: const std::vector< OUString > &rNameVector ); BitmapEx GetAsHorizontalStrip() const; sal_uInt16 GetImageCount() const; - Size GetImageSize() const; void AddImage( const OUString& rImageName, const Image& rImage ); @@ -43,7 +42,6 @@ public: Image GetImage( const OUString& rImageName ) const; sal_uInt16 GetImagePos( sal_uInt16 nId ) const; - bool HasImageForId( sal_uInt16 nId ) const; sal_uInt16 GetImagePos( const OUString& rImageName ) const; sal_uInt16 GetImageId( sal_uInt16 nPos ) const; |