From 837545feb63f31095d69d006aeda520637c3bc8c Mon Sep 17 00:00:00 2001 From: Bjoern Michaelsen Date: Sat, 11 Feb 2017 05:03:07 +0100 Subject: DYING_FLYFRAMEFORMAT not needed anymore MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Id9ded246752903f692c0f8254a258fada299d9bf Reviewed-on: https://gerrit.libreoffice.org/34142 Tested-by: Jenkins Reviewed-by: Björn Michaelsen --- sw/inc/frmfmt.hxx | 1 - sw/source/core/draw/dcontact.cxx | 11 ----------- sw/source/core/layout/atrfrm.cxx | 2 -- 3 files changed, 14 deletions(-) (limited to 'sw') 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. -- cgit