summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorBjoern Michaelsen <bjoern.michaelsen@libreoffice.org>2022-09-17 18:05:00 +0200
committerBjoern Michaelsen <bjoern.michaelsen@libreoffice.org>2022-09-23 22:48:40 +0200
commit5895fb9dac86ecf0cca42dbbb414f69caceae52e (patch)
tree943c8046b54898457542b6be9a4688458bc60b3b /sw
parente5793c64063e83cc6682e3a8691308f740fbc268 (diff)
remove RES_GRAPHIC_SWAPIN, it is never created
Change-Id: I9e7546d3f8bf5a3c0cefbdd3a4925467d7439856 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/140105 Tested-by: Jenkins Reviewed-by: Bjoern Michaelsen <bjoern.michaelsen@libreoffice.org>
Diffstat (limited to 'sw')
-rw-r--r--sw/inc/hintids.hxx1
-rw-r--r--sw/source/core/crsr/crsrsh.cxx9
2 files changed, 2 insertions, 8 deletions
diff --git a/sw/inc/hintids.hxx b/sw/inc/hintids.hxx
index 7c6a18723af2..80aa40b9fd8a 100644
--- a/sw/inc/hintids.hxx
+++ b/sw/inc/hintids.hxx
@@ -443,7 +443,6 @@ constexpr TypedWhichId<SwPtrMsgPoolItem> RES_REMOVE_UNO_OBJECT(181);
// empty
constexpr TypedWhichId<SwFindNearestNode> RES_FINDNEARESTNODE(184);
constexpr TypedWhichId<SwPtrMsgPoolItem> RES_CONTENT_VISIBLE(185);
-constexpr TypedWhichId<SwMsgPoolItem> RES_GRAPHIC_SWAPIN(186);
constexpr TypedWhichId<SwStringMsgPoolItem> RES_NAME_CHANGED(187);
constexpr TypedWhichId<SwStringMsgPoolItem> RES_TITLE_CHANGED(188);
constexpr TypedWhichId<SwStringMsgPoolItem> RES_DESCRIPTION_CHANGED(189);
diff --git a/sw/source/core/crsr/crsrsh.cxx b/sw/source/core/crsr/crsrsh.cxx
index 8f3840f22fcc..d0a71e136d33 100644
--- a/sw/source/core/crsr/crsrsh.cxx
+++ b/sw/source/core/crsr/crsrsh.cxx
@@ -2516,14 +2516,9 @@ void SwCursorShell::SwClientNotify(const SwModify&, const SfxHint& rHint)
// SwTextNode::Insert(SwTextHint*, sal_uInt16); we react here and thus do
// not need to send the expensive RES_FMT_CHG in Insert.
CallChgLnk();
- switch(nWhich)
+ if( nWhich == RES_OBJECTDYING )
{
- case RES_OBJECTDYING:
- EndListeningAll();
- break;
- case RES_GRAPHIC_SWAPIN:
- if(m_aGrfArrivedLnk.IsSet())
- m_aGrfArrivedLnk.Call(*this);
+ EndListeningAll();
}
}