diff options
author | Noel Grandin <noel@peralex.com> | 2014-02-26 10:41:53 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-02-27 10:27:30 +0200 |
commit | a7e69f7c2040203f5560c003af779083cd97e10d (patch) | |
tree | c8c9bfe9de347bbde185b87604f65b76e8408395 /sc | |
parent | 99e5749e80998e674b0f5cf8e5958632f49bbe50 (diff) |
remove unused code ScMyNotEmptyCellsIterator::GetCell() const
and the consequently unnecessary mpCell field
Change-Id: I95061a904bd88daea8c64c9dcfdb2e91f3f3ac3b
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/filter/xml/XMLExportIterator.cxx | 12 | ||||
-rw-r--r-- | sc/source/filter/xml/XMLExportIterator.hxx | 3 |
2 files changed, 3 insertions, 12 deletions
diff --git a/sc/source/filter/xml/XMLExportIterator.cxx b/sc/source/filter/xml/XMLExportIterator.cxx index afc05fdad835..31d7fdca54be 100644 --- a/sc/source/filter/xml/XMLExportIterator.cxx +++ b/sc/source/filter/xml/XMLExportIterator.cxx @@ -625,7 +625,6 @@ ScMyNotEmptyCellsIterator::ScMyNotEmptyCellsIterator(ScXMLExport& rTempXMLExport pDetectiveObj(NULL), pDetectiveOp(NULL), rExport(rTempXMLExport), - mpCell(NULL), nCurrentTable(SCTAB_MAX) { } @@ -664,9 +663,9 @@ void ScMyNotEmptyCellsIterator::SetCellData( ScMyCell& rMyCell, table::CellAddre if( (nCellCol == rAddress.Column) && (nCellRow == rAddress.Row) ) { - mpCell = mpCellItr->GetNext(nCellCol, nCellRow); - if (mpCell) - rMyCell.maBaseCell = *mpCell; + const ScRefCellValue* pCell = mpCellItr->GetNext(nCellCol, nCellRow); + if (pCell) + rMyCell.maBaseCell = *pCell; } rMyCell.bIsMatrixCovered = false; @@ -815,9 +814,4 @@ bool ScMyNotEmptyCellsIterator::GetNext(ScMyCell& aCell, ScFormatRangeStyles* pC return bFoundCell; } -const ScRefCellValue* ScMyNotEmptyCellsIterator::GetCell() const -{ - return mpCell; -} - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sc/source/filter/xml/XMLExportIterator.hxx b/sc/source/filter/xml/XMLExportIterator.hxx index 857f98c9f118..83380ae3e03d 100644 --- a/sc/source/filter/xml/XMLExportIterator.hxx +++ b/sc/source/filter/xml/XMLExportIterator.hxx @@ -348,7 +348,6 @@ class ScMyNotEmptyCellsIterator : boost::noncopyable ScXMLExport& rExport; boost::scoped_ptr<ScHorizontalCellIterator> mpCellItr; - const ScRefCellValue* mpCell; SCCOL nCellCol; SCROW nCellRow; @@ -384,8 +383,6 @@ public: void SkipTable(SCTAB nSkip); bool GetNext(ScMyCell& aCell, ScFormatRangeStyles* pCellStyles); - - const ScRefCellValue* GetCell() const; }; #endif |