From 389875573012c6373d95ef31b12fe8e8104b1233 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 4 Nov 2014 11:42:49 +0200 Subject: remove some unused code in sc Change-Id: I6cd2acaf361ae1947787b5aacc86b75a6e21c379 --- sc/source/core/data/table3.cxx | 30 ------------------------------ 1 file changed, 30 deletions(-) (limited to 'sc/source/core/data/table3.cxx') diff --git a/sc/source/core/data/table3.cxx b/sc/source/core/data/table3.cxx index b7661fe40afa..f7c61184fecd 100644 --- a/sc/source/core/data/table3.cxx +++ b/sc/source/core/data/table3.cxx @@ -1804,36 +1804,6 @@ bool ScTable::DoSubTotals( ScSubTotalParam& rParam ) return bSpaceLeft; } -void ScTable::MarkSubTotalCells( - sc::ColumnSpanSet& rSet, SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2, bool bVal ) const -{ - if (!ValidCol(nCol1) || !ValidCol(nCol2)) - return; - - // Pick up all subtotal formula cells. - for (SCCOL nCol = nCol1; nCol <= nCol2; ++nCol) - aCol[nCol].MarkSubTotalCells(rSet, nRow1, nRow2, bVal); - - // Pick up all filtered rows. - ScFlatBoolRowSegments::RangeData aFilteredSpan; - SCROW nRow = nRow1; - while (nRow <= nRow2) - { - if (!mpFilteredRows->getRangeData(nRow, aFilteredSpan)) - // Failed for whatever reason. - return; - - if (aFilteredSpan.mbValue) - { - // Filtered span found. - for (SCCOL nCol = nCol1; nCol <= nCol2; ++nCol) - rSet.set(nTab, nCol, nRow, aFilteredSpan.mnRow2, bVal); - } - - nRow = aFilteredSpan.mnRow2 + 1; - } -} - namespace { class QueryEvaluator -- cgit v1.2.3