sw/source/core/doc/tblrwcl.cxx |   33 ---------------------------------
 1 file changed, 33 deletions(-)

New commits:
commit 26d22a1e0514dab76dabfe87c747ace6a4a7e2cf
Author:     Caolán McNamara <caol...@redhat.com>
AuthorDate: Wed Feb 23 10:56:18 2022 +0000
Commit:     Caolán McNamara <caol...@redhat.com>
CommitDate: Wed Feb 23 14:51:29 2022 +0100

    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 <caol...@redhat.com>

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;

Reply via email to