diff options
author | Noel Grandin <noel@peralex.com> | 2014-02-25 16:03:12 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-02-26 08:55:04 +0200 |
commit | 10bf29702432f00d21c1b227d775907767d5888f (patch) | |
tree | 760cc224c7771cebc70c234c7b4c3d25eccdc323 | |
parent | 8a6c9bc82d22b694a344db9102dd1b91044589d7 (diff) |
remove unused code ScDocument::GetFormulaTokens
and consequently unused code
ScTable::GetFormulaTokens
ScColumn::GetFormulaTokens
Change-Id: Iad1fd45e67489bb8b0f9ed96a36b647e40e6f774
-rw-r--r-- | sc/inc/column.hxx | 1 | ||||
-rw-r--r-- | sc/inc/document.hxx | 1 | ||||
-rw-r--r-- | sc/inc/table.hxx | 1 | ||||
-rw-r--r-- | sc/source/core/data/column3.cxx | 9 | ||||
-rw-r--r-- | sc/source/core/data/document.cxx | 8 | ||||
-rw-r--r-- | sc/source/core/data/table2.cxx | 8 | ||||
-rw-r--r-- | unusedcode.easy | 1 |
7 files changed, 0 insertions, 29 deletions
diff --git a/sc/inc/column.hxx b/sc/inc/column.hxx index 7f0c365dcddf..ba0fcd4a5371 100644 --- a/sc/inc/column.hxx +++ b/sc/inc/column.hxx @@ -317,7 +317,6 @@ public: const EditTextObject* GetEditText( SCROW nRow ) const; void RemoveEditTextCharAttribs( SCROW nRow, const ScPatternAttr& rAttr ); void GetFormula( SCROW nRow, OUString& rFormula ) const; - const ScTokenArray* GetFormulaTokens( SCROW nRow ) const; const ScFormulaCell* GetFormulaCell( SCROW nRow ) const; ScFormulaCell* GetFormulaCell( SCROW nRow ); CellType GetCellType( SCROW nRow ) const; diff --git a/sc/inc/document.hxx b/sc/inc/document.hxx index 671c27f0351e..863569ad4cd2 100644 --- a/sc/inc/document.hxx +++ b/sc/inc/document.hxx @@ -885,7 +885,6 @@ public: void SetNumberFormat( const ScAddress& rPos, sal_uInt32 nNumberFormat ); void GetNumberFormatInfo( short& nType, sal_uLong& nIndex, const ScAddress& rPos ) const; - const ScTokenArray* GetFormulaTokens( const ScAddress& rPos ) const; SC_DLLPUBLIC const ScFormulaCell* GetFormulaCell( const ScAddress& rPos ) const; SC_DLLPUBLIC ScFormulaCell* GetFormulaCell( const ScAddress& rPos ); SC_DLLPUBLIC void GetFormula( SCCOL nCol, SCROW nRow, SCTAB nTab, OUString& rFormula ) const; diff --git a/sc/inc/table.hxx b/sc/inc/table.hxx index cd55ea9936ff..2290107283b1 100644 --- a/sc/inc/table.hxx +++ b/sc/inc/table.hxx @@ -370,7 +370,6 @@ public: const EditTextObject* GetEditText( SCCOL nCol, SCROW nRow ) const; void RemoveEditTextCharAttribs( SCCOL nCol, SCROW nRow, const ScPatternAttr& rAttr ); void GetFormula( SCCOL nCol, SCROW nRow, OUString& rFormula ) const; - const ScTokenArray* GetFormulaTokens( SCCOL nCol, SCROW nRow ) const; const ScFormulaCell* GetFormulaCell( SCCOL nCol, SCROW nRow ) const; ScFormulaCell* GetFormulaCell( SCCOL nCol, SCROW nRow ); diff --git a/sc/source/core/data/column3.cxx b/sc/source/core/data/column3.cxx index 5776ac9d5dd3..b50536b0a71a 100644 --- a/sc/source/core/data/column3.cxx +++ b/sc/source/core/data/column3.cxx @@ -2397,15 +2397,6 @@ void ScColumn::GetFormula( SCROW nRow, OUString& rFormula ) const rFormula = EMPTY_OUSTRING; } -const ScTokenArray* ScColumn::GetFormulaTokens( SCROW nRow ) const -{ - const ScFormulaCell* pCell = FetchFormulaCell(nRow); - if (!pCell) - return NULL; - - return pCell->GetCode(); -} - const ScFormulaCell* ScColumn::GetFormulaCell( SCROW nRow ) const { return FetchFormulaCell(nRow); diff --git a/sc/source/core/data/document.cxx b/sc/source/core/data/document.cxx index 963ffe625f3b..1bb6ae5ae41a 100644 --- a/sc/source/core/data/document.cxx +++ b/sc/source/core/data/document.cxx @@ -3502,14 +3502,6 @@ void ScDocument::GetFormula( SCCOL nCol, SCROW nRow, SCTAB nTab, OUString& rForm } -const ScTokenArray* ScDocument::GetFormulaTokens( const ScAddress& rPos ) const -{ - if (!TableExists(rPos.Tab())) - return NULL; - - return maTabs[rPos.Tab()]->GetFormulaTokens(rPos.Col(), rPos.Row()); -} - const ScFormulaCell* ScDocument::GetFormulaCell( const ScAddress& rPos ) const { if (!TableExists(rPos.Tab())) diff --git a/sc/source/core/data/table2.cxx b/sc/source/core/data/table2.cxx index 88ffc1fcd333..a09cae146b14 100644 --- a/sc/source/core/data/table2.cxx +++ b/sc/source/core/data/table2.cxx @@ -1492,14 +1492,6 @@ void ScTable::GetFormula( SCCOL nCol, SCROW nRow, OUString& rFormula ) const rFormula = OUString(); } -const ScTokenArray* ScTable::GetFormulaTokens( SCCOL nCol, SCROW nRow ) const -{ - if (!ValidColRow(nCol, nRow)) - return NULL; - - return aCol[nCol].GetFormulaTokens(nRow); -} - const ScFormulaCell* ScTable::GetFormulaCell( SCCOL nCol, SCROW nRow ) const { if (!ValidColRow(nCol, nRow)) diff --git a/unusedcode.easy b/unusedcode.easy index 29f0e16af240..685d9d9a8c60 100644 --- a/unusedcode.easy +++ b/unusedcode.easy @@ -78,7 +78,6 @@ ScDPFilteredCache::SingleFilter::getMatchValue() const ScDocument::CountNotes() const ScDocument::CreateFormatTable() const ScDocument::GetCellCount(short, short) const -ScDocument::GetFormulaTokens(ScAddress const&) const ScDocument::IsEmptyData(short, short) const ScExtIButton::GetSelected() const ScFlatBoolRowSegments::getValue(int) |