From 5059984c44379d09eabf740c21db062b925394ad Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 20 Nov 2019 09:53:29 +0200 Subject: PendingOverflowCheck in TextChain is unused Change-Id: I575865d79fc279ec017b6af461003f77e9c6073c Reviewed-on: https://gerrit.libreoffice.org/83258 Tested-by: Jenkins Reviewed-by: Noel Grandin --- svx/source/svdraw/textchain.cxx | 11 ----------- svx/source/svdraw/textchaincursor.cxx | 7 ------- 2 files changed, 18 deletions(-) (limited to 'svx') diff --git a/svx/source/svdraw/textchain.cxx b/svx/source/svdraw/textchain.cxx index 4160b37e9951..10c033463f3a 100644 --- a/svx/source/svdraw/textchain.cxx +++ b/svx/source/svdraw/textchain.cxx @@ -80,17 +80,6 @@ void TextChain::SetIsPartOfLastParaInNextLink(const SdrTextObj *pTarget, bool b) pLinkProperties->aIsPartOfLastParaInNextLink = b; } -bool TextChain::GetPendingOverflowCheck(const SdrTextObj *pTarget) -{ - ImpChainLinkProperties *pLinkProperties = GetLinkProperties(pTarget); - return pLinkProperties->aPendingOverflowCheck; -} -void TextChain::SetPendingOverflowCheck(const SdrTextObj *pTarget, bool b) -{ - ImpChainLinkProperties *pLinkProperties = GetLinkProperties(pTarget); - pLinkProperties->aPendingOverflowCheck = b; -} - bool TextChain::GetSwitchingToNextBox(const SdrTextObj *pTarget) { ImpChainLinkProperties *pLinkProperties = GetLinkProperties(pTarget); diff --git a/svx/source/svdraw/textchaincursor.cxx b/svx/source/svdraw/textchaincursor.cxx index 4f944f4342f6..3480481daad3 100644 --- a/svx/source/svdraw/textchaincursor.cxx +++ b/svx/source/svdraw/textchaincursor.cxx @@ -190,13 +190,6 @@ void TextChainCursorManager::impChangeEditingTextObj(SdrTextObj *pTargetTextObj, { assert(pTargetTextObj); - // To ensure that we check for overflow in the next box // This is handled in SdrTextObj::EndTextEdit - SdrTextObj *pNextLink = mpTextObj->GetNextLinkInChain(); - TextChain *pTextChain = mpTextObj->GetTextChain(); - // If we are moving forward - if (pNextLink && pTargetTextObj == pNextLink) - pTextChain->SetPendingOverflowCheck(pNextLink, true); - mpEditView->SdrEndTextEdit(); mpEditView->SdrBeginTextEdit(pTargetTextObj); // OutlinerView has changed, so we update the pointer -- cgit