summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2021-10-12 15:00:30 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-10-12 20:21:22 +0200
commit6e21f5a6b71790b3a36f67c3915b07a5f5717bcf (patch)
tree9d0c08cf449fa574dcce1b23af30a71dac9c4376 /sc
parent164ec9281aa57d52763e9622adb6e2e37d14bff8 (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')
-rw-r--r--sc/inc/editutil.hxx6
-rw-r--r--sc/inc/formulacell.hxx1
-rw-r--r--sc/source/core/data/formulacell.cxx8
-rw-r--r--sc/source/core/tool/editutil.cxx20
4 files changed, 0 insertions, 35 deletions
diff --git a/sc/inc/editutil.hxx b/sc/inc/editutil.hxx
index efec08dfdbc5..1353544b96e3 100644
--- a/sc/inc/editutil.hxx
+++ b/sc/inc/editutil.hxx
@@ -150,18 +150,12 @@ public:
/// Current defaults are not applied, new defaults are applied
void SetTextNewDefaults( const EditTextObject& rTextObject,
const SfxItemSet& rDefaults, bool bRememberCopy = true );
- /// Current defaults are not applied, new defaults are applied
- void SetTextNewDefaults( const EditTextObject& rTextObject,
- std::unique_ptr<SfxItemSet> pDefaults );
/// SetText and apply defaults already set
void SetTextCurrentDefaults( const OUString& rText );
/// Current defaults are not applied, new defaults are applied
void SetTextNewDefaults( const OUString& rText,
const SfxItemSet& rDefaults );
- /// Current defaults are not applied, new defaults are applied
- void SetTextNewDefaults( const OUString& rText,
- std::unique_ptr<SfxItemSet> pDefaults );
/// Paragraph attributes that are not defaults are copied to
/// character attributes and all paragraph attributes reset
diff --git a/sc/inc/formulacell.hxx b/sc/inc/formulacell.hxx
index fd57bde39976..9349447e9ff4 100644
--- a/sc/inc/formulacell.hxx
+++ b/sc/inc/formulacell.hxx
@@ -91,7 +91,6 @@ public:
~ScFormulaCellGroup();
void setCode( const ScTokenArray& rCode );
- void setCode( std::optional<ScTokenArray> pCode );
void compileCode(
ScDocument& rDoc, const ScAddress& rPos, formula::FormulaGrammar::Grammar eGram );
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 )