summaryrefslogtreecommitdiff
path: root/vcl/source/image
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2016-12-30 14:35:24 +0000
committerCaolán McNamara <caolanm@redhat.com>2016-12-30 16:33:32 +0000
commit21f934a7c54e6a62aac046b99e05bbcf394c4de4 (patch)
tree361155efd0a4dc4fc99553080595db1a69c41c0b /vcl/source/image
parent3ff74ff16b43cccf86cfd56c1f6b7ce30ce0b65d (diff)
ImageLists no longer loaded from resource files
Change-Id: I5bf1c75dce7bc9af6aaa92447fab7239dff4b676
Diffstat (limited to 'vcl/source/image')
-rw-r--r--vcl/source/image/ImageList.cxx37
1 files changed, 0 insertions, 37 deletions
diff --git a/vcl/source/image/ImageList.cxx b/vcl/source/image/ImageList.cxx
index 57eaf89e9613..748e19da8fb7 100644
--- a/vcl/source/image/ImageList.cxx
+++ b/vcl/source/image/ImageList.cxx
@@ -37,43 +37,6 @@ ImageList::ImageList()
{
}
-ImageList::ImageList(const ResId& rResId)
-{
- SAL_INFO( "vcl", "vcl: ImageList::ImageList( const ResId& rResId )" );
-
- rResId.SetRT( RSC_IMAGELIST );
-
- ResMgr* pResMgr = rResId.GetResMgr();
-
- if( pResMgr && pResMgr->GetResource( rResId ) )
- {
- pResMgr->Increment( sizeof( RSHEADER_TYPE ) );
-
- RscImageListFlags nObjMask = (RscImageListFlags)pResMgr->ReadLong();
- pResMgr->ReadString(); //skip string
-
- if( nObjMask & RscImageListFlags::IdList )
- {
- for( sal_Int32 i = 0, nCount = pResMgr->ReadLong(); i < nCount; ++i )
- pResMgr->ReadLong();
- }
-
- sal_Int32 nCount = pResMgr->ReadLong();
- ImplInit( static_cast< sal_uInt16 >( nCount ), Size() );
-
- BitmapEx aEmpty;
- for( sal_Int32 i = 0; i < nCount; ++i )
- {
- OUString aName = pResMgr->ReadString();
- sal_uInt16 nId = static_cast< sal_uInt16 >( pResMgr->ReadLong() );
- mpImplData->AddImage( aName, nId, aEmpty );
- }
-
- if( nObjMask & RscImageListFlags::IdCount )
- pResMgr->ReadShort();
- }
-}
-
ImageList::ImageList(const std::vector< OUString >& rNameVector,
const OUString& rPrefix)
{