diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-12-04 11:14:12 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-12-05 07:59:49 +0100 |
commit | 39ea830ef5f060586d4674ffce9915dc352af0fc (patch) | |
tree | abcb19d83c31848fd98d287d924800214140704a | |
parent | 001111f731038fd64c8b29c94614560e38d696ba (diff) |
remove unused GalleryHintType enum value
Change-Id: If4149e8b4a6e58f89997b150cc81e2e1195be4da
Reviewed-on: https://gerrit.libreoffice.org/64567
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
-rw-r--r-- | include/svx/galmisc.hxx | 3 | ||||
-rw-r--r-- | svx/source/gallery2/galtheme.cxx | 4 |
2 files changed, 1 insertions, 6 deletions
diff --git a/include/svx/galmisc.hxx b/include/svx/galmisc.hxx index 2c21b09ae822..d586325cc9a8 100644 --- a/include/svx/galmisc.hxx +++ b/include/svx/galmisc.hxx @@ -168,8 +168,7 @@ enum class GalleryHintType THEME_RENAMED, THEME_CREATED, THEME_UPDATEVIEW, - CLOSE_OBJECT, - OBJECT_REMOVED, + CLOSE_OBJECT }; class GalleryHint : public SfxHint diff --git a/svx/source/gallery2/galtheme.cxx b/svx/source/gallery2/galtheme.cxx index f782081b30a1..b6118c7bb2d2 100644 --- a/svx/source/gallery2/galtheme.cxx +++ b/svx/source/gallery2/galtheme.cxx @@ -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(); |