diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-05-18 15:35:17 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-05-18 18:20:34 +0200 |
commit | 81def52473d8de50f7b0570c9867573256b8afa7 (patch) | |
tree | 965ba42076d57d711e240ea1c1bac6409a0da93e /sc/source | |
parent | b7c44d7a34027210c06c9936f273fb1a3523a81a (diff) |
loplugin:unusedmethods
Change-Id: I8191f4a9eb25b12242354813303fb7d30489d2c4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115752
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/source')
-rw-r--r-- | sc/source/core/data/column2.cxx | 12 | ||||
-rw-r--r-- | sc/source/core/data/document.cxx | 18 | ||||
-rw-r--r-- | sc/source/core/data/table1.cxx | 16 |
3 files changed, 0 insertions, 46 deletions
diff --git a/sc/source/core/data/column2.cxx b/sc/source/core/data/column2.cxx index dda91a5cf4f4..dd0337784fa0 100644 --- a/sc/source/core/data/column2.cxx +++ b/sc/source/core/data/column2.cxx @@ -2153,18 +2153,6 @@ void ScColumn::SetScriptType( SCROW nRow, SvtScriptType nType ) CellStorageModified(); } -size_t ScColumn::GetFormulaHash( SCROW nRow ) const -{ - const ScFormulaCell* pCell = FetchFormulaCell(nRow); - return pCell ? pCell->GetHash() : 0; -} - -ScFormulaVectorState ScColumn::GetFormulaVectorState( SCROW nRow ) const -{ - const ScFormulaCell* pCell = FetchFormulaCell(nRow); - return pCell ? pCell->GetVectorState() : FormulaVectorUnknown; -} - formula::FormulaTokenRef ScColumn::ResolveStaticReference( 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 29ce6fa3c77a..012913d37924 100644 --- a/sc/source/core/data/document.cxx +++ b/sc/source/core/data/document.cxx @@ -1749,24 +1749,6 @@ bool ScDocument::HasPartOfMerged( const ScRange& rRange ) return bPart; } -size_t ScDocument::GetFormulaHash( const ScAddress& rPos ) const -{ - SCTAB nTab = rPos.Tab(); - if (!ValidTab(nTab) || o3tl::make_unsigned(nTab) >= maTabs.size() || !maTabs[nTab]) - return 0; - - return maTabs[nTab]->GetFormulaHash(rPos.Col(), rPos.Row()); -} - -ScFormulaVectorState ScDocument::GetFormulaVectorState( const ScAddress& rPos ) const -{ - SCTAB nTab = rPos.Tab(); - if (!ValidTab(nTab) || o3tl::make_unsigned(nTab) >= maTabs.size() || !maTabs[nTab]) - return FormulaVectorUnknown; - - return maTabs[nTab]->GetFormulaVectorState(rPos.Col(), rPos.Row()); -} - formula::FormulaTokenRef ScDocument::ResolveStaticReference( const ScAddress& rPos ) { SCTAB nTab = rPos.Tab(); diff --git a/sc/source/core/data/table1.cxx b/sc/source/core/data/table1.cxx index b70e5b490cde..40aeab42cfa2 100644 --- a/sc/source/core/data/table1.cxx +++ b/sc/source/core/data/table1.cxx @@ -2414,22 +2414,6 @@ SvtScriptType ScTable::GetRangeScriptType( return aCol[nCol].GetRangeScriptType(rBlockPos.miCellTextAttrPos, nRow1, nRow2, itr); } -size_t ScTable::GetFormulaHash( SCCOL nCol, SCROW nRow ) const -{ - if ( !IsColValid( nCol ) ) - return 0; - - return aCol[nCol].GetFormulaHash(nRow); -} - -ScFormulaVectorState ScTable::GetFormulaVectorState( SCCOL nCol, SCROW nRow ) const -{ - if ( !IsColValid( nCol ) ) - return FormulaVectorUnknown; - - return aCol[nCol].GetFormulaVectorState(nRow); -} - formula::FormulaTokenRef ScTable::ResolveStaticReference( SCCOL nCol, SCROW nRow ) { if ( !ValidCol( nCol ) || !ValidRow( nRow ) ) |