diff --git a/sw/inc/frmfmt.hxx b/sw/inc/frmfmt.hxx index 6daa2ad2b848..9d40d967858a 100644 --- a/sw/inc/frmfmt.hxx +++ b/sw/inc/frmfmt.hxx @@ -262,7 +262,6 @@ namespace sw { enum class DrawFrameFormatHintId { DYING, - DYING_FLYFRAMEFORMAT, /* possibly can be merged with DYING, if all client handle it and handle it the same */ PREPPASTING, PREP_INSERT_FLY, PREP_DELETE_FLY, diff --git a/sw/source/core/draw/dcontact.cxx b/sw/source/core/draw/dcontact.cxx index b0e2e9a01025..9a4c78eb3d18 100644 --- a/sw/source/core/draw/dcontact.cxx +++ b/sw/source/core/draw/dcontact.cxx @@ -594,17 +594,6 @@ void SwFlyDrawContact::SwClientNotify(const SwModify& rMod, const SfxHint& rHint { pKillDrawHint->m_rpContact = this; } - else if (auto pDrawFrameFormatHint = dynamic_cast(&rHint)) - { - switch(pDrawFrameFormatHint->m_eId) - { - case sw::DrawFrameFormatHintId::DYING_FLYFRAMEFORMAT: - dynamic_cast(const_cast(&rMod))->ClearContact(); - break; - default: - ; - } - } } // SwDrawContact diff --git a/sw/source/core/layout/atrfrm.cxx b/sw/source/core/layout/atrfrm.cxx index aff63bdec6e1..01c59236a505 100644 --- a/sw/source/core/layout/atrfrm.cxx +++ b/sw/source/core/layout/atrfrm.cxx @@ -2889,8 +2889,6 @@ SwFlyFrameFormat::~SwFlyFrameFormat() { SwFrame::DestroyFrame(pLast); } while( nullptr != ( pLast = aIter.Next() )); - - CallSwClientNotify(sw::DrawFrameFormatHint(sw::DrawFrameFormatHintId::DYING_FLYFRAMEFORMAT)); } /// Creates the Frames if the format describes a paragraph-bound frame.