summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@gmail.com>2013-06-21 09:36:50 -0400
committerKohei Yoshida <kohei.yoshida@gmail.com>2013-06-24 16:51:38 -0400
commit33a417fc82ce3c5f1b3d435d912eb4b5afc52054 (patch)
tree67e11469b915bd97b3db13ef54b5ab56e444699f
parent91f7e9e02e72b46c881656a6b493fac276a6822b (diff)
Remove unused method.
Change-Id: Id49307f8b7050e1f95cd589421f01a85b4e992b2
-rw-r--r--sc/inc/column.hxx6
-rw-r--r--sc/source/core/data/column.cxx36
2 files changed, 0 insertions, 42 deletions
diff --git a/sc/inc/column.hxx b/sc/inc/column.hxx
index c0b9c35fd7e2..e287a5bd93ec 100644
--- a/sc/inc/column.hxx
+++ b/sc/inc/column.hxx
@@ -489,12 +489,6 @@ private:
void ResetCellTextAttrs();
void SwapCellTextAttrs( SCROW nRow1, SCROW nRow2 );
-
- /**
- * Retrieve the cell value and set that slot empty. The ownership of that
- * cell value moves to the returned cell value object.
- */
- void ReleaseCellValue( sc::CellStoreType::iterator& itPos, SCROW nRow, ScCellValue& rVal );
};
#endif
diff --git a/sc/source/core/data/column.cxx b/sc/source/core/data/column.cxx
index c7ee06b8b482..66166be68831 100644
--- a/sc/source/core/data/column.cxx
+++ b/sc/source/core/data/column.cxx
@@ -806,42 +806,6 @@ ScRefCellValue ScColumn::GetCellValue( sc::CellStoreType::const_iterator& itPos,
return aVal;
}
-void ScColumn::ReleaseCellValue( sc::CellStoreType::iterator& itPos, SCROW nRow, ScCellValue& rVal )
-{
- std::pair<sc::CellStoreType::iterator,size_t> aPos = maCells.position(itPos, nRow);
- itPos = aPos.first; // Store it for the next iteration.
- if (aPos.first == maCells.end())
- return;
-
- switch (itPos->type)
- {
- case sc::element_type_numeric:
- // Numeric cell
- itPos = maCells.release(itPos, nRow, rVal.mfValue);
- rVal.meType = CELLTYPE_VALUE;
- break;
- case sc::element_type_string:
- {
- // Make a copy until we implement shared strings...
- OUString aStr;
- itPos = maCells.release(itPos, nRow, aStr);
- rVal.mpString = new OUString(aStr);
- rVal.meType = CELLTYPE_STRING;
- }
- break;
- case sc::element_type_edittext:
- itPos = maCells.release(itPos, nRow, rVal.mpEditText);
- rVal.meType = CELLTYPE_EDIT;
- break;
- case sc::element_type_formula:
- itPos = maCells.release(itPos, nRow, rVal.mpFormula);
- rVal.meType = CELLTYPE_FORMULA;
- break;
- default:
- ;
- }
-}
-
namespace {
ScFormulaCell* cloneFormulaCell(ScDocument* pDoc, const ScAddress& rNewPos, ScFormulaCell& rOldCell)