diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-04-19 16:20:09 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-04-20 08:58:54 +0200 |
commit | a0fd9001801bf29ac4154edfd914dc930ffecd72 (patch) | |
tree | 789d847d939fa6a4936a32f740181765b5ca3277 /sw/source | |
parent | 1055a94124a82b236230d6f97c1c9f0db07deba3 (diff) |
loplugin:unusedenumconstants
TableChgWidthHeightType::RowTop is dead with
commit 2d5ce0e1b233c83f91481cd6b9306ac8de7f5ff8
Date: Mon Mar 26 13:08:54 2018 +0200
tdf#116452 Remove "3 seconds to add/delete col/row" functions
Change-Id: I2fa82822b70457673419bd90ae82016c796acaa8
Reviewed-on: https://gerrit.libreoffice.org/53167
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source')
-rw-r--r-- | sw/source/core/doc/tblrwcl.cxx | 7 | ||||
-rw-r--r-- | sw/source/core/docnode/ndtbl.cxx | 1 | ||||
-rw-r--r-- | sw/source/core/frmedt/fetab.cxx | 4 | ||||
-rw-r--r-- | sw/source/core/undo/untbl.cxx | 1 |
4 files changed, 2 insertions, 11 deletions
diff --git a/sw/source/core/doc/tblrwcl.cxx b/sw/source/core/doc/tblrwcl.cxx index 5544487788a2..d1dd34c0a5da 100644 --- a/sw/source/core/doc/tblrwcl.cxx +++ b/sw/source/core/doc/tblrwcl.cxx @@ -201,8 +201,7 @@ struct CR_SetLineHeight : pTableNd( pTNd ), pUndo( nullptr ), nMaxSpace( 0 ), nMaxHeight( 0 ) { - bTop = TableChgWidthHeightType::RowTop == extractPosition( eType ) || - TableChgWidthHeightType::CellTop == extractPosition( eType ); + bTop = TableChgWidthHeightType::CellTop == extractPosition( eType ); bBigger = bool(eType & TableChgWidthHeightType::BiggerMode ); if( eType & TableChgWidthHeightType::InsertDeleteMode ) bBigger = !bBigger; @@ -4118,8 +4117,7 @@ bool SwTable::SetRowHeight( SwTableBox& rCurrentBox, TableChgWidthHeightType eTy SwTableSortBoxes aTmpLst; // for Undo bool bBigger, bRet = false, - bTop = TableChgWidthHeightType::RowTop == extractPosition( eType ) || - TableChgWidthHeightType::CellTop == extractPosition( eType ), + bTop = TableChgWidthHeightType::CellTop == extractPosition( eType ), bInsDel = bool(eType & TableChgWidthHeightType::InsertDeleteMode ); sal_uInt16 nBaseLinePos = GetTabLines().GetPos( pBaseLine ); sal_uLong nBoxIdx = rCurrentBox.GetSttIdx(); @@ -4150,7 +4148,6 @@ bool SwTable::SetRowHeight( SwTableBox& rCurrentBox, TableChgWidthHeightType eTy pBaseLine = pLine; SAL_FALLTHROUGH; - case TableChgWidthHeightType::RowTop: case TableChgWidthHeightType::RowBottom: { if( bInsDel && !bBigger ) // By how much does it get higher? diff --git a/sw/source/core/docnode/ndtbl.cxx b/sw/source/core/docnode/ndtbl.cxx index 4fc498d41cb8..3edfcdf51310 100644 --- a/sw/source/core/docnode/ndtbl.cxx +++ b/sw/source/core/docnode/ndtbl.cxx @@ -3968,7 +3968,6 @@ bool SwDoc::SetColRowWidthHeight( SwTableBox& rCurrentBox, TableChgWidthHeightTy bUndo ? &pUndo : nullptr ); } break; - case TableChgWidthHeightType::RowTop: case TableChgWidthHeightType::RowBottom: case TableChgWidthHeightType::CellTop: case TableChgWidthHeightType::CellBottom: diff --git a/sw/source/core/frmedt/fetab.cxx b/sw/source/core/frmedt/fetab.cxx index 4f4f64453f93..0e04ad50b980 100644 --- a/sw/source/core/frmedt/fetab.cxx +++ b/sw/source/core/frmedt/fetab.cxx @@ -2212,9 +2212,6 @@ void SwFEShell::SetColRowWidthHeight( TableChgWidthHeightType eType, sal_uInt16 // deleting the cells. switch( eTypePos ) { - case TableChgWidthHeightType::RowTop: - lcl_GoTableRow( this, true ); - break; case TableChgWidthHeightType::RowBottom: lcl_GoTableRow( this, false ); break; @@ -2256,7 +2253,6 @@ void SwFEShell::SetColRowWidthHeight( TableChgWidthHeightType eType, sal_uInt16 break; case TableChgWidthHeightType::CellTop: - case TableChgWidthHeightType::RowTop: lcl_GoTableRow( this, true ); break; diff --git a/sw/source/core/undo/untbl.cxx b/sw/source/core/undo/untbl.cxx index 511cf51986c6..a3fc1152d73e 100644 --- a/sw/source/core/undo/untbl.cxx +++ b/sw/source/core/undo/untbl.cxx @@ -1891,7 +1891,6 @@ void SwUndoTableNdsChg::RedoImpl(::sw::UndoRedoContext & rContext) rTable.SetColWidth( *pBox, nSetColType, nAbsDiff, nRelDiff, &pUndo ); break; - case TableChgWidthHeightType::RowTop: case TableChgWidthHeightType::RowBottom: case TableChgWidthHeightType::CellTop: case TableChgWidthHeightType::CellBottom: |