diff options
author | Noel Grandin <noel@peralex.com> | 2014-11-06 09:19:13 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-11-06 09:19:13 +0200 |
commit | befb92a8c4dc9c9f0349e701fd3d22cc49564d21 (patch) | |
tree | a52220201559a1cce52d065b1e9dfb6917f5df4d | |
parent | 552d4e9cb20a438311d1fcdfdb1d136c7fc18ddf (diff) |
sc: remove some unused code
Change-Id: If64738067e3b35523272285ae2606c6c06d4c121
-rw-r--r-- | sc/inc/column.hxx | 2 | ||||
-rw-r--r-- | sc/source/core/data/column.cxx | 27 | ||||
-rw-r--r-- | unusedcode.easy | 1 |
3 files changed, 0 insertions, 30 deletions
diff --git a/sc/inc/column.hxx b/sc/inc/column.hxx index ec05b1357769..4ff3c9eb1501 100644 --- a/sc/inc/column.hxx +++ b/sc/inc/column.hxx @@ -285,8 +285,6 @@ public: void SwapCol(ScColumn& rCol); void MoveTo(SCROW nStartRow, SCROW nEndRow, ScColumn& rCol); - void MarkSubTotalCells( sc::ColumnSpanSet& rSet, SCROW nRow1, SCROW nRow2, bool bVal ) const; - bool HasEditCells(SCROW nStartRow, SCROW nEndRow, SCROW& rFirst); bool SetString( diff --git a/sc/source/core/data/column.cxx b/sc/source/core/data/column.cxx index 9aa35324235f..bd6ea315a207 100644 --- a/sc/source/core/data/column.cxx +++ b/sc/source/core/data/column.cxx @@ -1920,33 +1920,6 @@ void ScColumn::MoveTo(SCROW nStartRow, SCROW nEndRow, ScColumn& rCol) namespace { -class SubTotalCellPicker -{ - sc::ColumnSpanSet& mrSet; - SCTAB mnTab; - SCCOL mnCol; - bool mbVal; -public: - SubTotalCellPicker(sc::ColumnSpanSet& rSet, SCTAB nTab, SCCOL nCol, bool bVal) : - mrSet(rSet), mnTab(nTab), mnCol(nCol), mbVal(bVal) {} - - void operator() (size_t nRow, const ScFormulaCell* pCell) - { - if (pCell->IsSubTotal()) - mrSet.set(mnTab, mnCol, nRow, mbVal); - } -}; - -} - -void ScColumn::MarkSubTotalCells( sc::ColumnSpanSet& rSet, SCROW nRow1, SCROW nRow2, bool bVal ) const -{ - SubTotalCellPicker aFunc(rSet, nTab, nCol, bVal); - sc::ParseFormula(maCells.begin(), maCells, nRow1, nRow2, aFunc); -} - -namespace { - class SharedTopFormulaCellPicker : std::unary_function<sc::CellStoreType::value_type, void> { public: diff --git a/unusedcode.easy b/unusedcode.easy index f22f7b1ab269..66de7df266dc 100644 --- a/unusedcode.easy +++ b/unusedcode.easy @@ -20,7 +20,6 @@ Primitive2dXmlDump::filterActionType(unsigned short, bool) Primitive2dXmlDump::filterAllActionTypes() SalGraphics::drawTransformedBitmap(basegfx::B2DPoint const&, basegfx::B2DPoint const&, basegfx::B2DPoint const&, SalBitmap const&, SalBitmap const*) ScBroadcastAreaSlotMachine::AreaBroadcastInRange(ScRange const&, ScHint const&) const -ScColumn::MarkSubTotalCells(sc::ColumnSpanSet&, int, int, bool) const ScDocument::CreateFormatTable() const ScFormulaCellGroup::scheduleCompilation() ScRawToken::Clone() const |