[Libreoffice-commits] core.git: sc/source
Tor Lillqvist
tml at collabora.com
Tue Jan 14 08:03:09 PST 2014
sc/source/core/data/dociter.cxx | 26 --------------------------
1 file changed, 26 deletions(-)
New commits:
commit f268b04b56ba840265b80e0dd41188a28791165b
Author: Tor Lillqvist <tml at collabora.com>
Date: Tue Jan 14 18:01:25 2014 +0200
WaE: unused function 'advanceNonEmptyBlock'
Change-Id: I38b91f9e02c1addd8a0ef427b7b09cdf1a04ee95
diff --git a/sc/source/core/data/dociter.cxx b/sc/source/core/data/dociter.cxx
index d06e009..8fa2c87 100644
--- a/sc/source/core/data/dociter.cxx
+++ b/sc/source/core/data/dociter.cxx
@@ -1848,32 +1848,6 @@ bool ScHorizontalCellIterator::GetPos( SCCOL& rCol, SCROW& rRow )
return mbMore;
}
-namespace {
-
-inline bool advanceNonEmptyBlock(size_t nRow, sc::CellStoreType::const_iterator& rPos,
- const sc::CellStoreType::const_iterator& rEnd)
-{
- assert (rPos->type != sc::element_type_empty);
-
- if (nRow < rPos->position + rPos->size)
- // Block already contains the specified row. Nothing to do.
- return true;
-
- // This block is behind the current row position. Advance the block.
- for (++rPos; rPos != rEnd; ++rPos)
- {
- if (nRow < rPos->position + rPos->size &&
- rPos->type == sc::element_type_empty)
- // Found a non-empty block that contains the specified row.
- return true;
- }
-
- // No more blocks.
- return false;
-}
-
-}
-
// Skip any invalid / empty cells across the current row,
// we only advance the cursor if the current entry is invalid.
// if we return true we have a valid cursor (or hit the end)
More information about the Libreoffice-commits
mailing list