diff options
Diffstat (limited to 'sc/source/core/data/column2.cxx')
-rw-r--r-- | sc/source/core/data/column2.cxx | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/sc/source/core/data/column2.cxx b/sc/source/core/data/column2.cxx index 183a219f1f4a..a5083210810a 100644 --- a/sc/source/core/data/column2.cxx +++ b/sc/source/core/data/column2.cxx @@ -2939,32 +2939,6 @@ void ScColumn::SetFormulaResults( SCROW nRow, const double* pResults, size_t nLe } } -void ScColumn::SetFormulaResults( SCROW nRow, const formula::FormulaConstTokenRef* pResults, size_t nLen ) -{ - sc::CellStoreType::position_type aPos = maCells.position(nRow); - sc::CellStoreType::iterator it = aPos.first; - if (it->type != sc::element_type_formula) - // This is not a formula block. - return; - - size_t nBlockLen = it->size - aPos.second; - if (nBlockLen < nLen) - // Result array is longer than the length of formula cells. Not good. - return; - - sc::formula_block::iterator itCell = sc::formula_block::begin(*it->data); - std::advance(itCell, aPos.second); - - const formula::FormulaConstTokenRef* pResEnd = pResults + nLen; - for (; pResults != pResEnd; ++pResults, ++itCell) - { - ScFormulaCell& rCell = **itCell; - rCell.SetResultToken(pResults->get()); - rCell.ResetDirty(); - rCell.SetChanged(true); - } -} - void ScColumn::CalculateInThread( ScInterpreterContext& rContext, SCROW nRow, size_t nLen, unsigned nThisThread, unsigned nThreadsTotal) { assert(GetDoc()->IsThreadedGroupCalcInProgress()); |