summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2023-04-27 19:05:50 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2023-04-28 12:33:41 +0200
commite8c265d06a9f34fec382d67c65c38189f16ee323 (patch)
tree1a606240d679a17cb50f5bbbe81746e1d2b69d0c /sw
parentca45f6efc2e9250daee8e94f8408fe4abba4a7ba (diff)
remove dead code in SwDrawModellListener_Impl::Notify
The isType<SdrObject>(pSdrHint->GetObject()) ) ) code has always been unconditionally true, because SdrHint has always returned an SdrObject, ever since it was introduced in commit 12b8488b9cf659adcafd4b998227397c57cf51ba Author: Vladimir Glazounov <vg@openoffice.org> Date: Wed Jul 9 08:16:20 2003 +0000 INTEGRATION: CWS sw020 (1.44.80); FILE MERGED 2003/07/01 11:50:20 od 1.44.80.1: #110554# <SwDrawModellListener_Impl::Notify(..)> - correction: no broadcast of notifications for writer fly frames and plane <SdrObject>-objects. Change-Id: I67e6576f0670856259edee35aaf001401e67d98d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/151139 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/access/accmap.cxx7
1 files changed, 1 insertions, 6 deletions
diff --git a/sw/source/core/access/accmap.cxx b/sw/source/core/access/accmap.cxx
index 6dc1feaa8dd5..5d21e969311c 100644
--- a/sw/source/core/access/accmap.cxx
+++ b/sw/source/core/access/accmap.cxx
@@ -197,13 +197,8 @@ void SwDrawModellListener_Impl::Notify( SfxBroadcaster& /*rBC*/,
if (rHint.GetId() != SfxHintId::ThisIsAnSdrHint)
return;
const SdrHint *pSdrHint = static_cast<const SdrHint*>( &rHint );
- if (pSdrHint->GetObject() &&
- ( dynamic_cast< const SwFlyDrawObj* >(pSdrHint->GetObject()) != nullptr ||
- dynamic_cast< const SwVirtFlyDrawObj* >(pSdrHint->GetObject()) != nullptr ||
- isType<SdrObject>(pSdrHint->GetObject()) ) )
- {
+ if (pSdrHint->GetObject() )
return;
- }
OSL_ENSURE( mpDrawModel, "draw model listener is disposed" );
if( !mpDrawModel )