diff options
author | Noel Grandin <noel@peralex.com> | 2016-05-25 09:05:21 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-05-26 07:50:33 +0000 |
commit | 74713b34a36577f19eb3194246de73fa4f2bb741 (patch) | |
tree | 334f601b030923ab621a92bae3f512ff67c99374 /sfx2/source/control/templatelocalview.cxx | |
parent | 132f7b2a8cc986ee79c4124ed2bc368d6dfaa418 (diff) |
loplugin:unusedmethods
Change-Id: Ib36bc0e87d00abb638cbfec511cd13b6179eabda
Reviewed-on: https://gerrit.libreoffice.org/25431
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'sfx2/source/control/templatelocalview.cxx')
-rw-r--r-- | sfx2/source/control/templatelocalview.cxx | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/sfx2/source/control/templatelocalview.cxx b/sfx2/source/control/templatelocalview.cxx index 2070a4836396..f985d3cfffad 100644 --- a/sfx2/source/control/templatelocalview.cxx +++ b/sfx2/source/control/templatelocalview.cxx @@ -238,17 +238,6 @@ IMPL_LINK_TYPED(TemplateLocalView, ContextMenuSelectHdl, Menu*, pMenu, bool) return false; } -sal_uInt16 TemplateLocalView::getCurRegionItemId() const -{ - for (TemplateContainerItem* pRegion : maRegions) - { - if (pRegion->mnRegionId == mnCurRegionId-1) - return pRegion->mnId; - } - - return 0; -} - sal_uInt16 TemplateLocalView::getRegionId(size_t pos) const { assert(pos < maRegions.size()); @@ -662,42 +651,6 @@ bool TemplateLocalView::copyFrom(const sal_uInt16 nRegionItemId, const BitmapEx return false; } -bool TemplateLocalView::copyFrom(const OUString &rPath) -{ - assert(mnCurRegionId); - - TemplateContainerItem *pRegItem = maRegions[mnCurRegionId-1]; - - sal_uInt16 nId = getNextItemId(); - sal_uInt16 nDocId = 0; - sal_uInt16 nRegionId = pRegItem->mnRegionId; - - OUString aPath(rPath); - - if (!pRegItem->maTemplates.empty()) - nDocId = (pRegItem->maTemplates.back()).nDocId+1; - - if (!mpDocTemplates->CopyFrom(nRegionId,nDocId,aPath)) - return false; - - TemplateItemProperties aTemplate; - aTemplate.nId = nId; - aTemplate.nDocId = nDocId; - aTemplate.nRegionId = nRegionId; - aTemplate.aName = aPath; - aTemplate.aThumbnail = TemplateAbstractView::fetchThumbnail(rPath, - TEMPLATE_THUMBNAIL_MAX_WIDTH, - TEMPLATE_THUMBNAIL_MAX_HEIGHT); - aTemplate.aPath = rPath; - aTemplate.aRegionName = getRegionName(nRegionId); - - pRegItem->maTemplates.push_back(aTemplate); - - insertItem(aTemplate); - - return true; -} - bool TemplateLocalView::copyFrom (TemplateContainerItem *pItem, const OUString &rPath) { sal_uInt16 nId = 1; |