diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-10-14 12:26:08 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-10-15 12:53:17 +0200 |
commit | bb234655bfdd60c64a0511918f835c3cfbde789a (patch) | |
tree | 97466bbfcf32cfc6117efe8118df71858894dfda /sc | |
parent | 7f5fd9d9ebffa692ba670f01f8f833657bb7745f (diff) |
loplugin:unusedmethods
Change-Id: I0226d33cbe224519cf2ed9ea5143ffe68fdbc884
Reviewed-on: https://gerrit.libreoffice.org/61775
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/inc/columnspanset.hxx | 2 | ||||
-rw-r--r-- | sc/source/core/data/columnspanset.cxx | 62 |
2 files changed, 0 insertions, 64 deletions
diff --git a/sc/inc/columnspanset.hxx b/sc/inc/columnspanset.hxx index a62bf6aec9f9..c75502f8bde8 100644 --- a/sc/inc/columnspanset.hxx +++ b/sc/inc/columnspanset.hxx @@ -103,7 +103,6 @@ public: void executeAction(Action& ac) const; void executeColumnAction(ScDocument& rDoc, ColumnAction& ac) const; - void executeColumnAction(ScDocument& rDoc, ColumnAction& ac, double& fMem) const; }; /** @@ -162,7 +161,6 @@ class RangeColumnSpanSet public: RangeColumnSpanSet( const ScRange& spanRange ) : range( spanRange ) {} - void executeAction(ScDocument& rDoc, sc::ColumnSpanSet::Action& ac) const; void executeColumnAction(ScDocument& rDoc, sc::ColumnSpanSet::ColumnAction& ac) const; void executeColumnAction(ScDocument& rDoc, sc::ColumnSpanSet::ColumnAction& ac, double& fMem) const; private: diff --git a/sc/source/core/data/columnspanset.cxx b/sc/source/core/data/columnspanset.cxx index c784fce1eecc..55b0f3e2ad01 100644 --- a/sc/source/core/data/columnspanset.cxx +++ b/sc/source/core/data/columnspanset.cxx @@ -217,49 +217,6 @@ void ColumnSpanSet::executeColumnAction(ScDocument& rDoc, ColumnAction& ac) cons } } -void ColumnSpanSet::executeColumnAction(ScDocument& rDoc, ColumnAction& ac, double& fMem) const -{ - for (size_t nTab = 0; nTab < maTables.size(); ++nTab) - { - if (!maTables[nTab]) - continue; - - const TableType& rTab = *maTables[nTab]; - for (size_t nCol = 0; nCol < rTab.size(); ++nCol) - { - if (!rTab[nCol]) - continue; - - ScTable* pTab = rDoc.FetchTable(nTab); - if (!pTab) - continue; - - if (!ValidCol(nCol)) - { - // End the loop. - nCol = rTab.size(); - continue; - } - - ScColumn& rColumn = pTab->aCol[nCol]; - ac.startColumn(&rColumn); - ColumnType& rCol = *rTab[nCol]; - ColumnSpansType::const_iterator it = rCol.maSpans.begin(), itEnd = rCol.maSpans.end(); - SCROW nRow1, nRow2; - nRow1 = it->first; - bool bVal = it->second; - for (++it; it != itEnd; ++it) - { - nRow2 = it->first-1; - ac.executeSum( nRow1, nRow2, bVal, fMem ); - - nRow1 = nRow2+1; // for the next iteration. - bVal = it->second; - } - } - } -} - namespace { class Scanner @@ -379,25 +336,6 @@ bool SingleColumnSpanSet::empty() const } -void RangeColumnSpanSet::executeAction(ScDocument& rDoc, sc::ColumnSpanSet::Action& ac) const -{ - for (SCTAB nTab = range.aStart.Tab(); nTab <= range.aEnd.Tab(); ++nTab) - { - for (SCCOL nCol = range.aStart.Col(); nCol <= range.aEnd.Col(); ++nCol) - { - ScTable* pTab = rDoc.FetchTable(nTab); - if (!pTab) - continue; - - if (!ValidCol(nCol)) - break; - - ac.startColumn(nTab, nCol); - ac.execute(ScAddress(nCol, range.aStart.Row(), nTab), range.aEnd.Row() - range.aStart.Row() + 1, true); - } - } -} - void RangeColumnSpanSet::executeColumnAction(ScDocument& rDoc, sc::ColumnSpanSet::ColumnAction& ac) const { for (SCTAB nTab = range.aStart.Tab(); nTab <= range.aEnd.Tab(); ++nTab) |