summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2023-04-16 17:05:25 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2023-04-16 18:31:37 +0200
commitabc09fe149ed971074eecb0cc1808c35add6ccfa (patch)
treeb32d642e749cab1f973366e60133ac2bbb265215 /svx
parentea5f1533cb0ad95a03a0770e3e99fec356ee93e6 (diff)
remove dead code
it is easier to see that is dead if you look at the code prior to eec42f0dbcc79a4c9f456ce97fa1066b8031ea28, when we were using unique_ptr, which means that the pointer comparisons could never be true. Change-Id: I2e8608e468868a1f6b657a90b3db580334ec0490 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/150457 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx')
-rw-r--r--svx/source/svdraw/svdtext.cxx21
1 files changed, 0 insertions, 21 deletions
diff --git a/svx/source/svdraw/svdtext.cxx b/svx/source/svdraw/svdtext.cxx
index e013620b7d06..0fe4fa47d405 100644
--- a/svx/source/svdraw/svdtext.cxx
+++ b/svx/source/svdraw/svdtext.cxx
@@ -71,16 +71,6 @@ const SfxItemSet& SdrText::GetItemSet() const
void SdrText::SetOutlinerParaObject( std::optional<OutlinerParaObject> pTextObject )
{
- // Update HitTestOutliner
- const SdrTextObj* pTestObj(mrObject.getSdrModelFromSdrObject().GetHitTestOutliner().GetTextObj());
-
- if(pTestObj)
- if ( (!pTestObj->GetOutlinerParaObject() && !mpOutlinerParaObject)
- || (pTestObj->GetOutlinerParaObject() && mpOutlinerParaObject && *pTestObj->GetOutlinerParaObject() == *mpOutlinerParaObject) )
- {
- mrObject.getSdrModelFromSdrObject().GetHitTestOutliner().SetTextObj(nullptr);
- }
-
mpOutlinerParaObject = std::move(pTextObject);
mbPortionInfoChecked = false;
}
@@ -98,19 +88,8 @@ const OutlinerParaObject* SdrText::GetOutlinerParaObject() const
/** returns the current OutlinerParaObject and removes it from this instance */
std::optional<OutlinerParaObject> SdrText::RemoveOutlinerParaObject()
{
- // Update HitTestOutliner
- const SdrTextObj* pTestObj(mrObject.getSdrModelFromSdrObject().GetHitTestOutliner().GetTextObj());
-
- if(pTestObj)
- if ( (!pTestObj->GetOutlinerParaObject() && !mpOutlinerParaObject)
- || (pTestObj->GetOutlinerParaObject() && mpOutlinerParaObject && *pTestObj->GetOutlinerParaObject() == *mpOutlinerParaObject) )
- {
- mrObject.getSdrModelFromSdrObject().GetHitTestOutliner().SetTextObj(nullptr);
- }
-
std::optional<OutlinerParaObject> pOPO = std::move(mpOutlinerParaObject);
mbPortionInfoChecked = false;
-
return pOPO;
}