diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-05-23 09:23:21 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-05-23 09:23:43 +0200 |
commit | a8df8e319fa6b328534855a17e6fcac8aeb4dc25 (patch) | |
tree | 4175e8b66257af13c90ce63e3f9f5a85ef5784e0 | |
parent | 70f49dc6927f3321e764174bd8050acaff63be32 (diff) |
Remove dead code
Change-Id: I198fb0193fed891c4dd8a8a92c29e36f6c4d48b9
-rw-r--r-- | sc/source/core/data/column3.cxx | 54 |
1 files changed, 0 insertions, 54 deletions
diff --git a/sc/source/core/data/column3.cxx b/sc/source/core/data/column3.cxx index 2d54fd55b91d..d023b162bb2b 100644 --- a/sc/source/core/data/column3.cxx +++ b/sc/source/core/data/column3.cxx @@ -140,41 +140,6 @@ void ScColumn::FreeAll() namespace { -/** - * Collect all formula cells for later mass-unregistration. Also tag row - * positions of all non-empty cells in the range. - */ -class DeleteRowsHandler -{ - ScDocument& mrDoc; - std::vector<SCROW> maRows; - std::vector<ScFormulaCell*> maFormulaCells; -public: - DeleteRowsHandler(ScDocument& rDoc) : mrDoc(rDoc) {} - - void operator() (size_t nRow, ScFormulaCell* pCell) - { - maFormulaCells.push_back(pCell); - maRows.push_back(nRow); - } - - void operator() (mdds::mtv::element_t nType, size_t nTopRow, size_t nDataSize) - { - if (nType == sc::element_type_empty) - // Ignore empty cells. - return; - - for (size_t i = 0; i < nDataSize; ++i) - // Tag all non-empty cells. - maRows.push_back(i + nTopRow); - } - - const std::vector<SCROW>& getNonEmptyRows() const - { - return maRows; - } -}; - class ShiftFormulaPosHandler { public: @@ -185,25 +150,6 @@ public: } }; -class RangeBroadcaster -{ - ScDocument& mrDoc; - ScHint maHint; -public: - RangeBroadcaster(ScDocument& rDoc, SCTAB nTab, SCCOL nCol) : - mrDoc(rDoc), - maHint(SC_HINT_DATACHANGED, ScAddress(nCol, 0, nTab)) {} - - void operator() (const sc::RowSpan& rSpan) - { - SCROW nRow1 = rSpan.mnRow1, nRow2 = rSpan.mnRow2; - maHint.GetAddress().SetRow(nRow1); - ScRange aRange(maHint.GetAddress()); - aRange.aEnd.SetRow(nRow2); - mrDoc.AreaBroadcastInRange(aRange, maHint); - } -}; - } void ScColumn::DeleteRow( SCROW nStartRow, SCSIZE nSize ) |