diff options
author | Kohei Yoshida <kohei.yoshida@collabora.com> | 2013-10-07 18:03:47 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@collabora.com> | 2013-10-08 15:48:10 -0400 |
commit | 543dfbad46ae0e67636a92af677dd9c3258fac84 (patch) | |
tree | 12e6570aae6ba9a28fbb9e4eedab3b09bbb11450 | |
parent | 658fc68d574bd49b8b233ad5ed886758e290b3aa (diff) |
Unused methods.
Change-Id: I8e70d2c730f0d8fa43a4270fddeca431bd7a5048
-rw-r--r-- | sc/inc/column.hxx | 1 | ||||
-rw-r--r-- | sc/inc/document.hxx | 11 | ||||
-rw-r--r-- | sc/inc/table.hxx | 1 | ||||
-rw-r--r-- | sc/source/core/data/column3.cxx | 13 | ||||
-rw-r--r-- | sc/source/core/data/document.cxx | 8 | ||||
-rw-r--r-- | sc/source/core/data/table2.cxx | 8 |
6 files changed, 0 insertions, 42 deletions
diff --git a/sc/inc/column.hxx b/sc/inc/column.hxx index ab14017d9d87..3fb39ba42848 100644 --- a/sc/inc/column.hxx +++ b/sc/inc/column.hxx @@ -292,7 +292,6 @@ public: void SetError( SCROW nRow, const sal_uInt16 nError); void GetString( SCROW nRow, OUString& rString ) const; - const svl::SharedString* GetStringCell( SCROW nRow ) const; double* GetValueCell( SCROW nRow ); void GetInputString( SCROW nRow, OUString& rString ) const; double GetValue( SCROW nRow ) const; diff --git a/sc/inc/document.hxx b/sc/inc/document.hxx index baae1db07a92..22d6eeda6822 100644 --- a/sc/inc/document.hxx +++ b/sc/inc/document.hxx @@ -844,17 +844,6 @@ public: SC_DLLPUBLIC OUString GetString( const ScAddress& rPos ) const; /** - * Return a pointer to the string object stored in string cell. - * - * @param rPos cell position. - * - * @return pointer to the string object stored in string cell, or NULL if - * the cell at specified position is not a string cell. Note that - * it returns NULL even for a edit cell. - */ - const svl::SharedString* GetStringCell( const ScAddress& rPos ) const; - - /** * Return a pointer to the double value stored in value cell. * * @param rPos cell position diff --git a/sc/inc/table.hxx b/sc/inc/table.hxx index 923dafd1dce0..6e095e214da8 100644 --- a/sc/inc/table.hxx +++ b/sc/inc/table.hxx @@ -352,7 +352,6 @@ public: void SetRawString( SCCOL nCol, SCROW nRow, const OUString& rStr ); void SetRawString( SCCOL nCol, SCROW nRow, const svl::SharedString& rStr ); void GetString( SCCOL nCol, SCROW nRow, OUString& rString ) const; - const svl::SharedString* GetStringCell( SCCOL nCol, SCROW nRow ) const; double* GetValueCell( SCCOL nCol, SCROW nRow ); void GetInputString( SCCOL nCol, SCROW nRow, OUString& rString ) const; double GetValue( const ScAddress& rPos ) const diff --git a/sc/source/core/data/column3.cxx b/sc/source/core/data/column3.cxx index c854456c22c0..16ac30c40b95 100644 --- a/sc/source/core/data/column3.cxx +++ b/sc/source/core/data/column3.cxx @@ -2284,19 +2284,6 @@ void ScColumn::GetString( SCROW nRow, OUString& rString ) const ScCellFormat::GetString(aCell, nFormat, rString, &pColor, *(pDocument->GetFormatTable()), pDocument); } -const svl::SharedString* ScColumn::GetStringCell( SCROW nRow ) const -{ - std::pair<sc::CellStoreType::const_iterator,size_t> aPos = maCells.position(nRow); - sc::CellStoreType::const_iterator it = aPos.first; - if (it == maCells.end()) - return NULL; - - if (it->type != sc::element_type_string) - return NULL; - - return &sc::string_block::at(*it->data, aPos.second); -} - double* ScColumn::GetValueCell( SCROW nRow ) { std::pair<sc::CellStoreType::iterator,size_t> aPos = maCells.position(nRow); diff --git a/sc/source/core/data/document.cxx b/sc/source/core/data/document.cxx index e3184f0b71f9..b5f6b8e4dc58 100644 --- a/sc/source/core/data/document.cxx +++ b/sc/source/core/data/document.cxx @@ -3205,14 +3205,6 @@ OUString ScDocument::GetString( const ScAddress& rPos ) const return aStr; } -const svl::SharedString* ScDocument::GetStringCell( const ScAddress& rPos ) const -{ - if (!TableExists(rPos.Tab())) - return NULL; - - return maTabs[rPos.Tab()]->GetStringCell(rPos.Col(), rPos.Row()); -} - double* ScDocument::GetValueCell( const ScAddress& rPos ) { if (!TableExists(rPos.Tab())) diff --git a/sc/source/core/data/table2.cxx b/sc/source/core/data/table2.cxx index b66be8c67657..a7504ccb5234 100644 --- a/sc/source/core/data/table2.cxx +++ b/sc/source/core/data/table2.cxx @@ -1547,14 +1547,6 @@ void ScTable::GetString( SCCOL nCol, SCROW nRow, OUString& rString ) const rString = OUString(); } -const svl::SharedString* ScTable::GetStringCell( SCCOL nCol, SCROW nRow ) const -{ - if (!ValidColRow(nCol,nRow)) - return NULL; - - return aCol[nCol].GetStringCell(nRow); -} - double* ScTable::GetValueCell( SCCOL nCol, SCROW nRow ) { if (!ValidColRow(nCol,nRow)) |