diff options
author | Kohei Yoshida <kohei.yoshida@gmail.com> | 2013-06-18 15:11:30 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@gmail.com> | 2013-06-24 16:51:25 -0400 |
commit | 46419cd7a2d453c6f252c28dfb9dbfb08605e1c4 (patch) | |
tree | f07f04cc6ccb108acd8fb2fe9f774c940b380a41 /sc/source/core/data/cell.cxx | |
parent | c008dc483f8c6840803983e7e351cec6fdd32070 (diff) |
ScFormulaCell is no longer a child class of ScBaseCell.
Change-Id: Id33072f193045e2eaf51373b47dac803f9a5d52c
Diffstat (limited to 'sc/source/core/data/cell.cxx')
-rw-r--r-- | sc/source/core/data/cell.cxx | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/sc/source/core/data/cell.cxx b/sc/source/core/data/cell.cxx index 6ccc80a9f872..901075228178 100644 --- a/sc/source/core/data/cell.cxx +++ b/sc/source/core/data/cell.cxx @@ -60,8 +60,6 @@ ScBaseCell* lclCloneCell( const ScBaseCell& rSrcCell, ScDocument& rDestDoc, cons return new ScStringCell( static_cast< const ScStringCell& >( rSrcCell ) ); case CELLTYPE_EDIT: return new ScEditCell(static_cast<const ScEditCell&>(rSrcCell), rDestDoc, rDestPos); - case CELLTYPE_FORMULA: - return new ScFormulaCell( static_cast< const ScFormulaCell& >( rSrcCell ), rDestDoc, rDestPos, nCloneFlags ); default:; } OSL_FAIL( "lclCloneCell - unknown cell type" ); @@ -74,8 +72,6 @@ ScBaseCell* ScBaseCell::Clone( ScDocument& rDestDoc, int nCloneFlags ) const { // notes will not be cloned -> cell address only needed for formula cells ScAddress aDestPos; - if( eCellType == CELLTYPE_FORMULA ) - aDestPos = static_cast< const ScFormulaCell* >( this )->aPos; return lclCloneCell( *this, rDestDoc, aDestPos, nCloneFlags ); } @@ -84,28 +80,6 @@ ScBaseCell* ScBaseCell::Clone( ScDocument& rDestDoc, const ScAddress& rDestPos, return lclCloneCell( *this, rDestDoc, rDestPos, nCloneFlags ); } -void ScBaseCell::Delete() -{ - switch (eCellType) - { - case CELLTYPE_VALUE: - delete (ScValueCell*) this; - break; - case CELLTYPE_STRING: - delete (ScStringCell*) this; - break; - case CELLTYPE_EDIT: - delete (ScEditCell*) this; - break; - case CELLTYPE_FORMULA: - delete (ScFormulaCell*) this; - break; - default: - OSL_FAIL("Attempt to Delete() an unknown CELLTYPE"); - break; - } -} - bool ScBaseCell::HasEmptyData() const { switch ( eCellType ) |