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 | |
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')
-rw-r--r-- | sc/inc/cellsuno.hxx | 1 | ||||
-rw-r--r-- | sc/inc/column.hxx | 3 | ||||
-rw-r--r-- | sc/inc/document.hxx | 4 | ||||
-rw-r--r-- | sc/inc/styleuno.hxx | 1 | ||||
-rw-r--r-- | sc/inc/table.hxx | 3 | ||||
-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 |
8 files changed, 0 insertions, 58 deletions
diff --git a/sc/inc/cellsuno.hxx b/sc/inc/cellsuno.hxx index eb50b536f3ac..c5aa7579497b 100644 --- a/sc/inc/cellsuno.hxx +++ b/sc/inc/cellsuno.hxx @@ -113,7 +113,6 @@ class SfxHint; class SfxItemPropertyMap; class SfxItemPropertySet; class SfxItemSet; -struct SfxItemPropertySimpleEntry; struct SfxItemPropertyMapEntry; namespace editeng { class SvxBorderLine; } diff --git a/sc/inc/column.hxx b/sc/inc/column.hxx index 58374fe37d28..c68110795311 100644 --- a/sc/inc/column.hxx +++ b/sc/inc/column.hxx @@ -586,9 +586,6 @@ public: void SetScriptType( SCROW nRow, SvtScriptType nType ); void UpdateScriptTypes( SCROW nRow1, SCROW nRow2 ); - size_t GetFormulaHash( SCROW nRow ) const; - - ScFormulaVectorState GetFormulaVectorState( SCROW nRow ) const; formula::FormulaTokenRef ResolveStaticReference( SCROW nRow ); bool ResolveStaticReference( ScMatrix& rMat, SCCOL nMatCol, SCROW nRow1, SCROW nRow2 ); void FillMatrix( ScMatrix& rMat, size_t nMatCol, SCROW nRow1, SCROW nRow2, svl::SharedStringPool* pPool ) const; diff --git a/sc/inc/document.hxx b/sc/inc/document.hxx index a40324f63cd2..e4127d426d25 100644 --- a/sc/inc/document.hxx +++ b/sc/inc/document.hxx @@ -2460,8 +2460,6 @@ public: void SetScriptType( const ScAddress& rPos, SvtScriptType nType ); void UpdateScriptTypes( const ScAddress& rPos, SCCOL nColSize, SCROW nRowSize ); - size_t GetFormulaHash( const ScAddress& rPos ) const; - /** * Make specified formula cells non-grouped. * @@ -2476,8 +2474,6 @@ public: void RegroupFormulaCells( SCTAB nTab, SCCOL nCol ); void RegroupFormulaCells( const ScRange& range ); - ScFormulaVectorState GetFormulaVectorState( const ScAddress& rPos ) const; - formula::FormulaTokenRef ResolveStaticReference( const ScAddress& rPos ); formula::FormulaTokenRef ResolveStaticReference( const ScRange& rRange ); diff --git a/sc/inc/styleuno.hxx b/sc/inc/styleuno.hxx index 53dcdcb05e38..a4ded70ab6f2 100644 --- a/sc/inc/styleuno.hxx +++ b/sc/inc/styleuno.hxx @@ -43,7 +43,6 @@ class SfxItemSet; class ScStyleFamilyObj; class ScStyleObj; -struct SfxItemPropertySimpleEntry; struct SfxItemPropertyMapEntry; class ScStyleFamiliesObj final : public ::cppu::WeakImplHelper< diff --git a/sc/inc/table.hxx b/sc/inc/table.hxx index 2436b0ccac87..8d938e6e5ce1 100644 --- a/sc/inc/table.hxx +++ b/sc/inc/table.hxx @@ -1004,9 +1004,6 @@ public: SvtScriptType GetRangeScriptType( sc::ColumnBlockPosition& rBlockPos, SCCOL nCol, SCROW nRow1, SCROW nRow2 ); - size_t GetFormulaHash( SCCOL nCol, SCROW nRow ) const; - - ScFormulaVectorState GetFormulaVectorState( SCCOL nCol, SCROW nRow ) const; formula::FormulaTokenRef ResolveStaticReference( SCCOL nCol, SCROW nRow ); formula::FormulaTokenRef ResolveStaticReference( SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2 ); formula::VectorRefArray FetchVectorRefArray( SCCOL nCol, SCROW nRow1, SCROW nRow2 ); 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 ) ) |