summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2022-02-23 10:56:18 +0000
committerCaolán McNamara <caolanm@redhat.com>2022-02-23 14:51:29 +0100
commit26d22a1e0514dab76dabfe87c747ace6a4a7e2cf (patch)
tree9c5bf56f4de958ac44dc343d7f3a87d3d934a6f0 /sw
parent52540a92343e72e4b402a6386464d69135460112 (diff)
cid#1500676 Logically dead code
and cid#1500414 Logically dead code since: commit dcda5569c41b33077a1795d1e147572a2d483d04 Date: Thu Nov 22 14:09:27 2018 +0200 remove unused TableChgWidthHeightType::InsertDeleteMode Change-Id: I2159bf2b39e6b42ec9235e9b149752507096c7cd Reviewed-on: https://gerrit.libreoffice.org/c/core/+/130432 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/doc/tblrwcl.cxx33
1 files changed, 0 insertions, 33 deletions
diff --git a/sw/source/core/doc/tblrwcl.cxx b/sw/source/core/doc/tblrwcl.cxx
index 139e85aeb565..8a825ff1f285 100644
--- a/sw/source/core/doc/tblrwcl.cxx
+++ b/sw/source/core/doc/tblrwcl.cxx
@@ -2613,7 +2613,6 @@ bool SwTable::SetColWidth( SwTableBox& rCurrentBox, TableChgWidthHeightType eTyp
const SwFormatFrameSize& rSz = GetFrameFormat()->GetFrameSize();
const SvxLRSpaceItem& rLR = GetFrameFormat()->GetLRSpace();
- std::unique_ptr<FndBox_> xFndBox; // for insertion/deletion
bool bBigger,
bRet = false,
bLeft = TableChgWidthHeightType::ColLeft == extractPosition( eType ) ||
@@ -2912,22 +2911,6 @@ bool SwTable::SetColWidth( SwTableBox& rCurrentBox, TableChgWidthHeightType eTyp
default: break;
}
- if( xFndBox )
- {
- // Clean up the structure of all Lines
- GCLines();
-
- // Update Layout
- if( !bBigger || xFndBox->AreLinesToRestore( *this ) )
- xFndBox->MakeFrames( *this );
-
- // TL_CHART2: it is currently unclear if sth has to be done here.
- // The function name hints that nothing needs to be done, on the other
- // hand there is a case where sth gets deleted. :-(
-
- xFndBox.reset();
- }
-
#if defined DBG_UTIL
if( bRet )
{
@@ -3055,7 +3038,6 @@ bool SwTable::SetRowHeight( SwTableBox& rCurrentBox, TableChgWidthHeightType eTy
while( pBaseLine->GetUpper() )
pBaseLine = pBaseLine->GetUpper()->GetUpper();
- std::unique_ptr<FndBox_> xFndBox; // for insertion/deletion
bool bBigger,
bRet = false,
bTop = TableChgWidthHeightType::CellTop == extractPosition( eType );
@@ -3196,7 +3178,6 @@ bool SwTable::SetRowHeight( SwTableBox& rCurrentBox, TableChgWidthHeightType eTy
nRelDiff, ppUndo );
m_eTableChgMode = eOld;
- xFndBox.reset();
}
}
}
@@ -3204,20 +3185,6 @@ bool SwTable::SetRowHeight( SwTableBox& rCurrentBox, TableChgWidthHeightType eTy
default: break;
}
- if( xFndBox )
- {
- // then clean up the structure of all Lines
- GCLines();
-
- // Update Layout
- if( bBigger || xFndBox->AreLinesToRestore( *this ) )
- xFndBox->MakeFrames( *this );
-
- // TL_CHART2: it is currently unclear if sth has to be done here.
-
- xFndBox.reset();
- }
-
CHECKTABLELAYOUT
return bRet;