summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-06-08 08:51:44 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-06-08 17:17:36 +0200
commit53312ca4ee722a6d5ba22d1f578c6de5fbc37207 (patch)
tree0958ed3af146236305947489425f12f73e9cbcc9 /sw
parent4aa60490622cc10f8d3a31489c62a5622d240c83 (diff)
loplugin:unusedmethods
Change-Id: I52efd8d843d0e4cc7a6adefb0eb95aa50469af38 Reviewed-on: https://gerrit.libreoffice.org/73693 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw')
-rw-r--r--sw/source/filter/ww8/rtfattributeoutput.hxx1
-rw-r--r--sw/source/uibase/dochdl/gloshdl.cxx22
-rw-r--r--sw/source/uibase/inc/gloshdl.hxx2
3 files changed, 0 insertions, 25 deletions
diff --git a/sw/source/filter/ww8/rtfattributeoutput.hxx b/sw/source/filter/ww8/rtfattributeoutput.hxx
index 4a6b90607af5..66e902a770fc 100644
--- a/sw/source/filter/ww8/rtfattributeoutput.hxx
+++ b/sw/source/filter/ww8/rtfattributeoutput.hxx
@@ -83,7 +83,6 @@ public:
// Access to (anyway) private buffers, used by the sdr exporter
OStringBuffer& RunText();
- OStringBuffer& Styles() { return m_aStyles; }
OString MoveCharacterProperties(bool aAutoWriteRtlLtr = false);
/// Output text (without markup).
diff --git a/sw/source/uibase/dochdl/gloshdl.cxx b/sw/source/uibase/dochdl/gloshdl.cxx
index fc1f13dae296..2409f7b6511f 100644
--- a/sw/source/uibase/dochdl/gloshdl.cxx
+++ b/sw/source/uibase/dochdl/gloshdl.cxx
@@ -202,28 +202,6 @@ void SwGlossaryHdl::RenameGroup(const OUString& rOld, OUString& rNew, const OUSt
}
}
-bool SwGlossaryHdl::CopyOrMove( const OUString& rSourceGroupName, OUString& rSourceShortName,
- const OUString& rDestGroupName, const OUString& rLongName, bool bMove )
-{
- std::unique_ptr<SwTextBlocks> pSourceGroup = rStatGlossaries.GetGroupDoc(rSourceGroupName);
- std::unique_ptr<SwTextBlocks> pDestGroup = rStatGlossaries.GetGroupDoc(rDestGroupName);
- if (pDestGroup->IsReadOnly() || (bMove && pSourceGroup->IsReadOnly()) )
- {
- return false;
- }
-
- //The index must be determined here because rSourceShortName maybe changed in CopyBlock
- sal_uInt16 nDeleteIdx = pSourceGroup->GetIndex( rSourceShortName );
- OSL_ENSURE(USHRT_MAX != nDeleteIdx, "entry not found");
- ErrCode nRet = pSourceGroup->CopyBlock( *pDestGroup, rSourceShortName, rLongName );
- if(!nRet && bMove)
- {
- // the index must be existing
- nRet = pSourceGroup->Delete( nDeleteIdx ) ? ERRCODE_NONE : ErrCode(1);
- }
- return !nRet;
-}
-
// delete a autotext-file-group
bool SwGlossaryHdl::DelGroup(const OUString &rGrpName)
{
diff --git a/sw/source/uibase/inc/gloshdl.hxx b/sw/source/uibase/inc/gloshdl.hxx
index d065aa9302a5..c57a762bbf6e 100644
--- a/sw/source/uibase/inc/gloshdl.hxx
+++ b/sw/source/uibase/inc/gloshdl.hxx
@@ -60,8 +60,6 @@ public:
bool Rename( const OUString& rOldShortName, const OUString& rNewShortName,
const OUString& rNewName);
- bool CopyOrMove( const OUString& rSourceGroupName, OUString& rSourceShortName,
- const OUString& rDestGroupName, const OUString& rLongName, bool bMove );
bool HasShortName(const OUString &rShortName) const;
// when NewGlossary is called from Basic then the previously set group should
// be newly created if applicable.