[Libreoffice-commits] core.git: sc/source
Stephan Bergmann
sbergman at redhat.com
Fri May 23 00:24:13 PDT 2014
sc/source/core/data/column3.cxx | 54 ----------------------------------------
1 file changed, 54 deletions(-)
New commits:
commit a8df8e319fa6b328534855a17e6fcac8aeb4dc25
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Fri May 23 09:23:21 2014 +0200
Remove dead code
Change-Id: I198fb0193fed891c4dd8a8a92c29e36f6c4d48b9
diff --git a/sc/source/core/data/column3.cxx b/sc/source/core/data/column3.cxx
index 2d54fd5..d023b16 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 )
More information about the Libreoffice-commits
mailing list