summaryrefslogtreecommitdiff
path: root/sc/source/core
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2014-04-28 22:46:59 +0200
committerJulien Nabet <serval2412@yahoo.fr>2014-04-28 22:50:20 +0200
commit531f283b3d80b8bffeb1ac39a4656e27511fdaff (patch)
treef193d8276a1f57fea93278f235f7bb5863f1f2c2 /sc/source/core
parentc21e35272038aff8e7db5713ee36a496a91e73c7 (diff)
unusedcode.easy: remove SwapWithinGroup
Cleanup after 3f41b12c6685b82b5c2674bd9b9d5991adebeaf9 "SwapRow() is no more!" Change-Id: If0e76e442bcee37c3136665e598038ab19a436bb
Diffstat (limited to 'sc/source/core')
-rw-r--r--sc/source/core/data/formulacell.cxx41
1 files changed, 0 insertions, 41 deletions
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);