diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2014-04-28 22:46:59 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2014-04-28 22:50:20 +0200 |
commit | 531f283b3d80b8bffeb1ac39a4656e27511fdaff (patch) | |
tree | f193d8276a1f57fea93278f235f7bb5863f1f2c2 /sc | |
parent | c21e35272038aff8e7db5713ee36a496a91e73c7 (diff) |
unusedcode.easy: remove SwapWithinGroup
Cleanup after 3f41b12c6685b82b5c2674bd9b9d5991adebeaf9 "SwapRow() is no more!"
Change-Id: If0e76e442bcee37c3136665e598038ab19a436bb
Diffstat (limited to 'sc')
-rw-r--r-- | sc/inc/formulacell.hxx | 1 | ||||
-rw-r--r-- | sc/source/core/data/formulacell.cxx | 41 |
2 files changed, 0 insertions, 42 deletions
diff --git a/sc/inc/formulacell.hxx b/sc/inc/formulacell.hxx index 71389eaf9c19..91a3625f478c 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 45ff1646e2e6..aa52450b576d 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); |