diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-10-12 15:00:30 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-10-12 20:21:22 +0200 |
commit | 6e21f5a6b71790b3a36f67c3915b07a5f5717bcf (patch) | |
tree | 9d0c08cf449fa574dcce1b23af30a71dac9c4376 /sc/source | |
parent | 164ec9281aa57d52763e9622adb6e2e37d14bff8 (diff) |
loplugin:unusedmethods
Change-Id: Ifd3a1ccef68ebc4cd4e7785357e6a476f6669eb8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123456
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/source')
-rw-r--r-- | sc/source/core/data/formulacell.cxx | 8 | ||||
-rw-r--r-- | sc/source/core/tool/editutil.cxx | 20 |
2 files changed, 0 insertions, 28 deletions
diff --git a/sc/source/core/data/formulacell.cxx b/sc/source/core/data/formulacell.cxx index 254f4bcee1d7..74eae869966f 100644 --- a/sc/source/core/data/formulacell.cxx +++ b/sc/source/core/data/formulacell.cxx @@ -526,14 +526,6 @@ void ScFormulaCellGroup::setCode( const ScTokenArray& rCode ) mpCode->GenHash(); } -void ScFormulaCellGroup::setCode( std::optional<ScTokenArray> pCode ) -{ - mpCode = std::move(pCode); // takes ownership of the token array. - mpCode->Finalize(); // Reduce memory usage if needed. - mbInvariant = mpCode->IsInvariant(); - mpCode->GenHash(); -} - void ScFormulaCellGroup::compileCode( ScDocument& rDoc, const ScAddress& rPos, FormulaGrammar::Grammar eGram ) { diff --git a/sc/source/core/tool/editutil.cxx b/sc/source/core/tool/editutil.cxx index 5262fa812e52..03458d9f734f 100644 --- a/sc/source/core/tool/editutil.cxx +++ b/sc/source/core/tool/editutil.cxx @@ -613,16 +613,6 @@ void ScEditEngineDefaulter::SetTextNewDefaults( const EditTextObject& rTextObjec SetUpdateLayout( true ); } -void ScEditEngineDefaulter::SetTextNewDefaults( const EditTextObject& rTextObject, - std::unique_ptr<SfxItemSet> pSet ) -{ - bool bUpdateMode = SetUpdateLayout( false ); - SetText( rTextObject ); - SetDefaults( std::move(pSet) ); - if ( bUpdateMode ) - SetUpdateLayout( true ); -} - void ScEditEngineDefaulter::SetTextCurrentDefaults( const OUString& rText ) { bool bUpdateMode = SetUpdateLayout( false ); @@ -643,16 +633,6 @@ void ScEditEngineDefaulter::SetTextNewDefaults( const OUString& rText, SetUpdateLayout( true ); } -void ScEditEngineDefaulter::SetTextNewDefaults( const OUString& rText, - std::unique_ptr<SfxItemSet> pSet ) -{ - bool bUpdateMode = SetUpdateLayout( false ); - SetText( rText ); - SetDefaults( std::move(pSet) ); - if ( bUpdateMode ) - SetUpdateLayout( true ); -} - void ScEditEngineDefaulter::RepeatDefaults() { if ( pDefaults ) |