Kaydet (Commit) 39ea830e authored tarafından Noel Grandin's avatar Noel Grandin

remove unused GalleryHintType enum value

Change-Id: If4149e8b4a6e58f89997b150cc81e2e1195be4da
Reviewed-on: https://gerrit.libreoffice.org/64567
Tested-by: Jenkins
Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst 001111f7
......@@ -168,8 +168,7 @@ enum class GalleryHintType
THEME_RENAMED,
THEME_CREATED,
THEME_UPDATEVIEW,
CLOSE_OBJECT,
OBJECT_REMOVED,
CLOSE_OBJECT
};
class GalleryHint : public SfxHint
......
......@@ -82,7 +82,6 @@ GalleryTheme::~GalleryTheme()
for (auto & pEntry : aObjectList)
{
Broadcast( GalleryHint( GalleryHintType::CLOSE_OBJECT, GetName(), pEntry.get() ) );
Broadcast( GalleryHint( GalleryHintType::OBJECT_REMOVED, GetName(), pEntry.get() ) );
pEntry.reset();
}
aObjectList.clear();
......@@ -445,7 +444,6 @@ void GalleryTheme::RemoveObject(sal_uInt32 nPos)
aSvDrawStorageRef->Remove( pEntry->aURL.GetMainURL( INetURLObject::DecodeMechanism::NONE ) );
Broadcast( GalleryHint( GalleryHintType::CLOSE_OBJECT, GetName(), pEntry.get() ) );
Broadcast( GalleryHint( GalleryHintType::OBJECT_REMOVED, GetName(), pEntry.get() ) );
pEntry.reset();
ImplSetModified( true );
......@@ -562,7 +560,6 @@ void GalleryTheme::Actualize( const Link<const INetURLObject&, void>& rActualize
if( (*it)->mbDelete )
{
Broadcast( GalleryHint( GalleryHintType::CLOSE_OBJECT, GetName(), it->get() ) );
Broadcast( GalleryHint( GalleryHintType::OBJECT_REMOVED, GetName(), it->get() ) );
it = aObjectList.erase( it );
}
else
......@@ -1350,7 +1347,6 @@ SvStream& GalleryTheme::ReadData( SvStream& rIStm )
{
GalleryObject* pObj = i.get();
Broadcast( GalleryHint( GalleryHintType::CLOSE_OBJECT, GetName(), pObj ) );
Broadcast( GalleryHint( GalleryHintType::OBJECT_REMOVED, GetName(), pObj ) );
i.reset();
}
aObjectList.clear();
......
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