summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-03-29 11:41:17 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-03-29 11:43:40 +0000
commit9bfd742d8cdc4aab3dd817f13ab4cfa5cc60ae12 (patch)
tree51815ec709869dd297c10b8359b3bc4736204a98 /framework
parentcfaba15c589f882cc0bcce5cd07bdf3d30f547f6 (diff)
loplugin:unusedmethods
Change-Id: Ib008613fb06c82791c63d5b074a3e2ff1c3607a0 Reviewed-on: https://gerrit.libreoffice.org/35834 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.cxx43
-rw-r--r--framework/source/uiconfiguration/ImageList.hxx2
2 files changed, 0 insertions, 45 deletions
diff --git a/framework/source/uiconfiguration/ImageList.cxx b/framework/source/uiconfiguration/ImageList.cxx
index cdceb4b2e179..8c0fc26bdac0 100644
--- a/framework/source/uiconfiguration/ImageList.cxx
+++ b/framework/source/uiconfiguration/ImageList.cxx
@@ -164,34 +164,6 @@ void ImageList::RemoveImage( sal_uInt16 nId )
}
}
-Image ImageList::GetImage( sal_uInt16 nId ) const
-{
- Image aRet;
-
- if (mpImplData)
- {
- for (ImageAryData* pImageData : mpImplData->maImages)
- {
- if (pImageData->mnId == nId)
- {
- if (pImageData->IsLoadable())
- pImageData->Load(mpImplData->maPrefix);
- aRet = Image(pImageData->maBitmapEx);
- }
- }
- }
-
- if (!aRet)
- {
- BitmapEx rBitmap;
- bool bResult = vcl::ImageRepository::loadDefaultImage(rBitmap);
- if (bResult)
- aRet = Image(rBitmap);
- }
-
- return aRet;
-}
-
Image ImageList::GetImage( const OUString& rImageName ) const
{
if( mpImplData )
@@ -214,21 +186,6 @@ sal_uInt16 ImageList::GetImageCount() const
return mpImplData ? static_cast< sal_uInt16 >( mpImplData->maImages.size() ) : 0;
}
-sal_uInt16 ImageList::GetImagePos( sal_uInt16 nId ) const
-{
-
- if( mpImplData && nId )
- {
- for( size_t i = 0; i < mpImplData->maImages.size(); ++i )
- {
- if (mpImplData->maImages[ i ]->mnId == nId)
- return static_cast< sal_uInt16 >( i );
- }
- }
-
- return IMAGELIST_IMAGE_NOTFOUND;
-}
-
sal_uInt16 ImageList::GetImagePos( const OUString& rImageName ) const
{
if( mpImplData && !rImageName.isEmpty() )
diff --git a/framework/source/uiconfiguration/ImageList.hxx b/framework/source/uiconfiguration/ImageList.hxx
index d6db88c45848..85c9459a7b5d 100644
--- a/framework/source/uiconfiguration/ImageList.hxx
+++ b/framework/source/uiconfiguration/ImageList.hxx
@@ -38,10 +38,8 @@ public:
void RemoveImage( sal_uInt16 nId );
- Image GetImage( sal_uInt16 nId ) const;
Image GetImage( const OUString& rImageName ) const;
- sal_uInt16 GetImagePos( sal_uInt16 nId ) const;
sal_uInt16 GetImagePos( const OUString& rImageName ) const;
sal_uInt16 GetImageId( sal_uInt16 nPos ) const;