Kaydet (Commit) a7e69f7c authored tarafından Noel Grandin's avatar Noel Grandin

remove unused code ScMyNotEmptyCellsIterator::GetCell() const

and the consequently unnecessary mpCell field

Change-Id: I95061a904bd88daea8c64c9dcfdb2e91f3f3ac3b
üst 99e5749e
...@@ -625,7 +625,6 @@ ScMyNotEmptyCellsIterator::ScMyNotEmptyCellsIterator(ScXMLExport& rTempXMLExport ...@@ -625,7 +625,6 @@ ScMyNotEmptyCellsIterator::ScMyNotEmptyCellsIterator(ScXMLExport& rTempXMLExport
pDetectiveObj(NULL), pDetectiveObj(NULL),
pDetectiveOp(NULL), pDetectiveOp(NULL),
rExport(rTempXMLExport), rExport(rTempXMLExport),
mpCell(NULL),
nCurrentTable(SCTAB_MAX) nCurrentTable(SCTAB_MAX)
{ {
} }
...@@ -664,9 +663,9 @@ void ScMyNotEmptyCellsIterator::SetCellData( ScMyCell& rMyCell, table::CellAddre ...@@ -664,9 +663,9 @@ void ScMyNotEmptyCellsIterator::SetCellData( ScMyCell& rMyCell, table::CellAddre
if( (nCellCol == rAddress.Column) && (nCellRow == rAddress.Row) ) if( (nCellCol == rAddress.Column) && (nCellRow == rAddress.Row) )
{ {
mpCell = mpCellItr->GetNext(nCellCol, nCellRow); const ScRefCellValue* pCell = mpCellItr->GetNext(nCellCol, nCellRow);
if (mpCell) if (pCell)
rMyCell.maBaseCell = *mpCell; rMyCell.maBaseCell = *pCell;
} }
rMyCell.bIsMatrixCovered = false; rMyCell.bIsMatrixCovered = false;
...@@ -815,9 +814,4 @@ bool ScMyNotEmptyCellsIterator::GetNext(ScMyCell& aCell, ScFormatRangeStyles* pC ...@@ -815,9 +814,4 @@ bool ScMyNotEmptyCellsIterator::GetNext(ScMyCell& aCell, ScFormatRangeStyles* pC
return bFoundCell; return bFoundCell;
} }
const ScRefCellValue* ScMyNotEmptyCellsIterator::GetCell() const
{
return mpCell;
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
...@@ -348,7 +348,6 @@ class ScMyNotEmptyCellsIterator : boost::noncopyable ...@@ -348,7 +348,6 @@ class ScMyNotEmptyCellsIterator : boost::noncopyable
ScXMLExport& rExport; ScXMLExport& rExport;
boost::scoped_ptr<ScHorizontalCellIterator> mpCellItr; boost::scoped_ptr<ScHorizontalCellIterator> mpCellItr;
const ScRefCellValue* mpCell;
SCCOL nCellCol; SCCOL nCellCol;
SCROW nCellRow; SCROW nCellRow;
...@@ -384,8 +383,6 @@ public: ...@@ -384,8 +383,6 @@ public:
void SkipTable(SCTAB nSkip); void SkipTable(SCTAB nSkip);
bool GetNext(ScMyCell& aCell, ScFormatRangeStyles* pCellStyles); bool GetNext(ScMyCell& aCell, ScFormatRangeStyles* pCellStyles);
const ScRefCellValue* GetCell() const;
}; };
#endif #endif
......
...@@ -80,7 +80,6 @@ ScExtIButton::GetSelected() const ...@@ -80,7 +80,6 @@ ScExtIButton::GetSelected() const
ScFlatBoolRowSegments::getValue(int) ScFlatBoolRowSegments::getValue(int)
ScGlobal::GetStandardFormat(double, SvNumberFormatter&, unsigned long, short) ScGlobal::GetStandardFormat(double, SvNumberFormatter&, unsigned long, short)
ScGridWindow::HasScenarioRange(unsigned short, int, ScRange&) ScGridWindow::HasScenarioRange(unsigned short, int, ScRange&)
ScMyNotEmptyCellsIterator::GetCell() const
ScVbaFormat<ooo::vba::excel::XStyle>::getAddIndent() ScVbaFormat<ooo::vba::excel::XStyle>::getAddIndent()
ScVbaFormat<ooo::vba::excel::XStyle>::setAddIndent(com::sun::star::uno::Any const&) ScVbaFormat<ooo::vba::excel::XStyle>::setAddIndent(com::sun::star::uno::Any const&)
SdrItemBrowser::ForceParent() SdrItemBrowser::ForceParent()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment