summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2014-01-14 18:01:25 +0200
committerTor Lillqvist <tml@collabora.com>2014-01-14 18:01:25 +0200
commitf268b04b56ba840265b80e0dd41188a28791165b (patch)
tree85125a16132f6888f73158b0eaef24f8f78a41de /sc
parentdf9243626b39742a9a148bea95796f8824fee68a (diff)
WaE: unused function 'advanceNonEmptyBlock'
Change-Id: I38b91f9e02c1addd8a0ef427b7b09cdf1a04ee95
Diffstat (limited to 'sc')
-rw-r--r--sc/source/core/data/dociter.cxx26
1 files changed, 0 insertions, 26 deletions
diff --git a/sc/source/core/data/dociter.cxx b/sc/source/core/data/dociter.cxx
index d06e009bae2f..8fa2c87a414d 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)