comphelper/source/property/propshlp.cxx |    3 ---
 include/comphelper/propshlp.hxx         |    1 -
 svx/source/dialog/framelinkarray.cxx    |   21 +--------------------
 3 files changed, 1 insertion(+), 24 deletions(-)

New commits:
commit 884a2cd39a7c0433a5bbbf4e83e2a9b16cdad71c
Author:     Noel Grandin <noel.gran...@collabora.co.uk>
AuthorDate: Fri Jun 30 15:36:51 2023 +0200
Commit:     Noel Grandin <noel.gran...@collabora.co.uk>
CommitDate: Sun Jul 2 12:09:03 2023 +0200

    loplugin:singlevalfields
    
    Change-Id: I091fac5ed41b2fb58dee5e3e1b8dd805c8dc4966
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/153813
    Tested-by: Jenkins
    Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk>

diff --git a/comphelper/source/property/propshlp.cxx 
b/comphelper/source/property/propshlp.cxx
index dd227cc15e25..0ae1b789bd77 100644
--- a/comphelper/source/property/propshlp.cxx
+++ b/comphelper/source/property/propshlp.cxx
@@ -515,9 +515,6 @@ void OPropertySetHelper::fire(std::unique_lock<std::mutex>& 
rGuard, sal_Int32* p
                               sal_Int32 nHandles, // This is the Count of the 
array
                               bool bVetoable)
 {
-    if (!m_bFireEvents)
-        return;
-
     // Only fire, if one or more properties changed
     if (!nHandles)
         return;
diff --git a/include/comphelper/propshlp.hxx b/include/comphelper/propshlp.hxx
index 524ff2f10c91..9be8f7397687 100644
--- a/include/comphelper/propshlp.hxx
+++ b/include/comphelper/propshlp.hxx
@@ -302,7 +302,6 @@ private:
     std::vector<css::uno::Any> m_newValues;
     std::vector<css::uno::Any> m_oldValues;
     bool m_bIgnoreRuntimeExceptionsWhileFiring = false;
-    bool m_bFireEvents = true;
 
     /** notifies the given changes in property's values, <em>plus</em> all 
property changes collected during recent
         |setDependentFastPropertyValue| calls.
diff --git a/svx/source/dialog/framelinkarray.cxx 
b/svx/source/dialog/framelinkarray.cxx
index 80a245a0f27c..8d3e2640caa3 100644
--- a/svx/source/dialog/framelinkarray.cxx
+++ b/svx/source/dialog/framelinkarray.cxx
@@ -65,7 +65,6 @@ public:
     SvxRotateMode       meRotMode;
     double              mfOrientation;
 
-    bool                mbMergeOrig;
     bool                mbOverlapX;
     bool                mbOverlapY;
 
@@ -90,7 +89,7 @@ public:
     const Style& GetStyleTLBR() const { return maTLBR; }
     const Style& GetStyleBLTR() const { return maBLTR; }
 
-    bool                IsMerged() const { return mbMergeOrig || mbOverlapX || 
mbOverlapY; }
+    bool                IsMerged() const { return mbOverlapX || mbOverlapY; }
     bool                IsRotated() const { return mfOrientation != 0.0; }
 
     void                MirrorSelfX();
@@ -209,7 +208,6 @@ Cell::Cell() :
     mnAddBottom( 0 ),
     meRotMode(SvxRotateMode::SVX_ROTATE_MODE_STANDARD ),
     mfOrientation( 0.0 ),
-    mbMergeOrig( false ),
     mbOverlapX( false ),
     mbOverlapY( false )
 {
@@ -236,7 +234,6 @@ bool Cell::operator==(const SfxPoolItem& rItem) const
         && mnAddTop == rOther.mnAddTop
         && mnAddBottom == rOther.mnAddBottom
         && meRotMode == rOther.meRotMode
-        && mbMergeOrig == rOther.mbMergeOrig
         && mbOverlapX == rOther.mbOverlapX
         && mbOverlapY == rOther.mbOverlapY;
 }
@@ -270,14 +267,12 @@ static void lclSetMergedRange( SfxItemPool& rPool, 
CellVec& rCells, sal_Int32 nW
         {
             const Cell* pCell = rCells[ nRow * nWidth + nCol ];
             Cell aTempCell(*pCell);
-            aTempCell.mbMergeOrig = false;
             aTempCell.mbOverlapX = nCol > nFirstCol;
             aTempCell.mbOverlapY = nRow > nFirstRow;
             rCells[ nRow * nWidth + nCol ] = &rPool.Put(aTempCell);
         }
     }
     Cell aTempCell(*rCells[ nFirstRow * nWidth + nFirstCol ]);
-    aTempCell.mbMergeOrig = false;
     rCells[ nFirstRow * nWidth + nFirstCol ] = &rPool.Put(aTempCell);
 }
 
@@ -1070,20 +1065,6 @@ void Array::MirrorSelfX()
             aNewCells.push_back( &mxImpl->mxPool->Put(aTempCell) );
         }
     }
-    for( nRow = 0; nRow < mxImpl->mnHeight; ++nRow )
-    {
-        for( nCol = 0; nCol < mxImpl->mnWidth; ++nCol )
-        {
-            if( CELL( nCol, nRow ).mbMergeOrig )
-            {
-                sal_Int32 nLastCol = mxImpl->GetMergedLastCol( nCol, nRow );
-                sal_Int32 nLastRow = mxImpl->GetMergedLastRow( nCol, nRow );
-                lclSetMergedRange( *mxImpl->mxPool, aNewCells, mxImpl->mnWidth,
-                    mxImpl->GetMirrorCol( nLastCol ), nRow,
-                    mxImpl->GetMirrorCol( nCol ), nLastRow );
-            }
-        }
-    }
     mxImpl->maCells.swap( aNewCells );
 
     std::reverse( mxImpl->maWidths.begin(), mxImpl->maWidths.end() );

Reply via email to