diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-06-08 08:51:44 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-06-08 17:17:36 +0200 |
commit | 53312ca4ee722a6d5ba22d1f578c6de5fbc37207 (patch) | |
tree | 0958ed3af146236305947489425f12f73e9cbcc9 /sw/source/uibase/dochdl/gloshdl.cxx | |
parent | 4aa60490622cc10f8d3a31489c62a5622d240c83 (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/source/uibase/dochdl/gloshdl.cxx')
-rw-r--r-- | sw/source/uibase/dochdl/gloshdl.cxx | 22 |
1 files changed, 0 insertions, 22 deletions
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) { |