Kaydet (Commit) 5132017d authored tarafından Jan Holesovsky's avatar Jan Holesovsky

ImageList::AddImage(sal_uInt16, ...) is unused again, kill.

Change-Id: I58be12e7cbf1b97b4d52f398853074ad135780a0
üst e9257fa0
...@@ -103,7 +103,6 @@ public: ...@@ -103,7 +103,6 @@ public:
Size GetImageSize() const; Size GetImageSize() const;
void AddImage( const OUString& rImageName, const Image& rImage ); void AddImage( const OUString& rImageName, const Image& rImage );
void AddImage( sal_uInt16 nNewId, const Image& rImage );
void ReplaceImage( const OUString& rImageName, const Image& rImage ); void ReplaceImage( const OUString& rImageName, const Image& rImage );
......
...@@ -504,21 +504,6 @@ sal_uInt16 ImageList::ImplGetImageId( const OUString& rImageName ) const ...@@ -504,21 +504,6 @@ sal_uInt16 ImageList::ImplGetImageId( const OUString& rImageName ) const
return 0; return 0;
} }
void ImageList::AddImage( sal_uInt16 nId, const Image& rImage )
{
DBG_CHKTHIS( ImageList, NULL );
DBG_CHKOBJ( &rImage, Image, NULL );
DBG_ASSERT( nId, "ImageList::AddImage(): ImageId == 0" );
DBG_ASSERT( GetImagePos( nId ) == IMAGELIST_IMAGE_NOTFOUND, "ImageList::AddImage() - ImageId already exists" );
DBG_ASSERT( rImage.mpImplData, "ImageList::AddImage(): Wrong Size" );
DBG_ASSERT( !mpImplData || (rImage.GetSizePixel() == mpImplData->maImageSize), "ImageList::AddImage(): Wrong Size" );
if( !mpImplData )
ImplInit( 0, rImage.GetSizePixel() );
mpImplData->AddImage( rtl::OUString(), nId, rImage.GetBitmapEx());
}
void ImageList::AddImage( const OUString& rImageName, const Image& rImage ) void ImageList::AddImage( const OUString& rImageName, const Image& rImage )
{ {
DBG_ASSERT( GetImagePos( rImageName ) == IMAGELIST_IMAGE_NOTFOUND, "ImageList::AddImage() - ImageName already exists" ); DBG_ASSERT( GetImagePos( rImageName ) == IMAGELIST_IMAGE_NOTFOUND, "ImageList::AddImage() - ImageName already exists" );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment