summaryrefslogtreecommitdiffstats
path: root/sc
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-02-25 16:03:12 +0200
committerNoel Grandin <noel@peralex.com>2014-02-26 08:55:04 +0200
commit10bf29702432f00d21c1b227d775907767d5888f (patch)
tree760cc224c7771cebc70c234c7b4c3d25eccdc323 /sc
parentremove unused code ScDocument::RebuildFormulaGroups() (diff)
downloadcore-10bf29702432f00d21c1b227d775907767d5888f.tar.gz
core-10bf29702432f00d21c1b227d775907767d5888f.zip
remove unused code ScDocument::GetFormulaTokens
and consequently unused code ScTable::GetFormulaTokens ScColumn::GetFormulaTokens Change-Id: Iad1fd45e67489bb8b0f9ed96a36b647e40e6f774
Diffstat (limited to 'sc')
-rw-r--r--sc/inc/column.hxx1
-rw-r--r--sc/inc/document.hxx1
-rw-r--r--sc/inc/table.hxx1
-rw-r--r--sc/source/core/data/column3.cxx9
-rw-r--r--sc/source/core/data/document.cxx8
-rw-r--r--sc/source/core/data/table2.cxx8
6 files changed, 0 insertions, 28 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))