[Libreoffice-commits] core.git: sc/inc sc/source unusedcode.easy

Julien Nabet serval2412 at yahoo.fr
Mon Apr 28 13:51:16 PDT 2014


 sc/inc/formulacell.hxx              |    1 
 sc/source/core/data/formulacell.cxx |   41 ------------------------------------
 unusedcode.easy                     |    1 
 3 files changed, 43 deletions(-)

New commits:
commit 531f283b3d80b8bffeb1ac39a4656e27511fdaff
Author: Julien Nabet <serval2412 at yahoo.fr>
Date:   Mon Apr 28 22:46:59 2014 +0200

    unusedcode.easy: remove SwapWithinGroup
    
    Cleanup after 3f41b12c6685b82b5c2674bd9b9d5991adebeaf9 "SwapRow() is no more!"
    
    Change-Id: If0e76e442bcee37c3136665e598038ab19a436bb

diff --git a/sc/inc/formulacell.hxx b/sc/inc/formulacell.hxx
index 71389ea..91a3625 100644
--- a/sc/inc/formulacell.hxx
+++ b/sc/inc/formulacell.hxx
@@ -209,7 +209,6 @@ public:
     void            SetDirtyAfterLoad();
     void ResetTableOpDirtyVar();
     void            SetTableOpDirty();
-    bool            SwapWithinGroup( ScFormulaCell *pSwap );
     bool            IsDirtyOrInTableOpDirty() const;
     bool GetDirty() const;
     void ResetDirty();
diff --git a/sc/source/core/data/formulacell.cxx b/sc/source/core/data/formulacell.cxx
index 45ff164..aa52450 100644
--- a/sc/source/core/data/formulacell.cxx
+++ b/sc/source/core/data/formulacell.cxx
@@ -2020,47 +2020,6 @@ bool ScFormulaCell::IsDirtyOrInTableOpDirty() const
     return bDirty || (bTableOpDirty && pDocument->IsInInterpreterTableOp());
 }
 
-/** Exchange formulae cell result data inside a formula
-    group if possible. Return true if both Formula cells
-    are inside the same formula group and the data has
-    been successfully exchanged; otherwise false - leaving
-    the formulae untouched.
- */
-bool ScFormulaCell::SwapWithinGroup( ScFormulaCell *pSwap )
-{
-    if (!mxGroup || // ungrouped
-         mxGroup != pSwap->mxGroup)
-        return false;
-
-    if (pDocument != pSwap->pDocument ||
-        nSeenInIteration != pSwap->nSeenInIteration ||
-        eTempGrammar != pSwap->eTempGrammar ||
-        cMatrixFlag != pSwap->cMatrixFlag ||
-        nFormatType != pSwap->nFormatType ||
-        bDirty != pSwap->bDirty ||
-        bChanged != pSwap->bChanged ||
-        bRunning != pSwap->bRunning ||
-        bCompile != pSwap->bCompile ||
-        bSubTotal != pSwap->bSubTotal ||
-        bIsIterCell != pSwap->bIsIterCell ||
-        bInChangeTrack != pSwap->bInChangeTrack ||
-        bTableOpDirty != pSwap->bTableOpDirty ||
-        bNeedListening != pSwap->bNeedListening ||
-        mbNeedsNumberFormat != pSwap->mbNeedsNumberFormat ||
-        mbPostponedDirty != pSwap->mbPostponedDirty
-        )
-        return false; // we are paranoid for good reason.
-
-    // retain aPos as is.
-
-    // swap result value
-    ScFormulaResult aTemp(aResult);
-    aResult = pSwap->aResult;
-    pSwap->aResult.Assign(aTemp);
-
-    return true;
-}
-
 void ScFormulaCell::SetResultDouble( double n )
 {
     aResult.SetDouble(n);
diff --git a/unusedcode.easy b/unusedcode.easy
index 4ba0403..4f5c4c2 100644
--- a/unusedcode.easy
+++ b/unusedcode.easy
@@ -41,7 +41,6 @@ ScBitMaskCompressedArray<int, unsigned char>::GetFirstForCondition(int, int, uns
 ScDocument::CreateFormatTable() const
 ScDocument::GetRowFlagsArray(short) const
 ScExtIButton::GetSelected() const
-ScFormulaCell::SwapWithinGroup(ScFormulaCell*)
 ScFormulaCellGroup::scheduleCompilation()
 ScTable::GetCellTextAttr(short, int) const
 ScTable::TransferCellValuesFrom(short, int, sc::CellValues&)


More information about the Libreoffice-commits mailing list