summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-08-13 10:00:17 +0200
committerNoel Grandin <noel@peralex.com>2015-08-13 10:49:57 +0200
commitce7cec07d37747051172ebc9864c016ccf34fe14 (patch)
treee8de86b4cf03e18e270696d24797882cde3c5a65 /sfx2
parent200e336d1d5c036b5ecd308d93e4131274b1efb8 (diff)
remove unused code
Change-Id: I5bd42970f485bd1456f8c81934ee23e09a37a6bf
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/control/templateabstractview.cxx4
-rw-r--r--sfx2/source/control/templatelocalview.cxx4
-rw-r--r--sfx2/source/control/templatesearchview.cxx1
-rw-r--r--sfx2/source/control/thumbnailviewitem.cxx5
4 files changed, 0 insertions, 14 deletions
diff --git a/sfx2/source/control/templateabstractview.cxx b/sfx2/source/control/templateabstractview.cxx
index 1db333ec5bce..3fe237ff32ca 100644
--- a/sfx2/source/control/templateabstractview.cxx
+++ b/sfx2/source/control/templateabstractview.cxx
@@ -179,8 +179,6 @@ void TemplateAbstractView::insertItem(const TemplateItemProperties &rTemplate)
pChild->maPreview1 = TemplateAbstractView::getDefaultThumbnail(pCur->aPath);
}
- pChild->setSelectClickHdl(LINK(this,ThumbnailView,OnItemSelected));
-
AppendItem(pChild);
CalculateItemPositions();
@@ -208,8 +206,6 @@ void TemplateAbstractView::insertItems(const std::vector<TemplateItemProperties>
pChild->maPreview1 = TemplateAbstractView::getDefaultThumbnail(pCur->aPath);
}
- pChild->setSelectClickHdl(LINK(this,ThumbnailView,OnItemSelected));
-
aItems[i] = pChild;
}
diff --git a/sfx2/source/control/templatelocalview.cxx b/sfx2/source/control/templatelocalview.cxx
index 1dc61c1f74a8..e138b88fd905 100644
--- a/sfx2/source/control/templatelocalview.cxx
+++ b/sfx2/source/control/templatelocalview.cxx
@@ -71,7 +71,6 @@ void TemplateLocalView::Populate ()
TemplateContainerItem* pItem = new TemplateContainerItem( *this, i+1 );
pItem->mnRegionId = i;
pItem->maTitle = aRegionName;
- pItem->setSelectClickHdl(LINK(this,ThumbnailView,OnItemSelected));
sal_uInt16 nEntries = mpDocTemplates->GetCount(i);
@@ -139,7 +138,6 @@ void TemplateLocalView::showRootRegion()
pItem->mnRegionId = pCur->mnRegionId;
pItem->maTitle = pCur->maTitle;
pItem->maTemplates = pCur->maTemplates;
- pItem->setSelectClickHdl(LINK(this,ThumbnailView,OnItemSelected));
items[i] = pItem;
}
@@ -270,14 +268,12 @@ sal_uInt16 TemplateLocalView::createRegion(const OUString &rName)
TemplateContainerItem* pItem = new TemplateContainerItem( *this, nItemId );
pItem->mnRegionId = nRegionId;
pItem->maTitle = aRegionName;
- pItem->setSelectClickHdl(LINK(this,ThumbnailView,OnItemSelected));
maRegions.push_back(pItem);
pItem = new TemplateContainerItem(*this, nItemId);
pItem->mnRegionId = nRegionId;
pItem->maTitle = aRegionName;
- pItem->setSelectClickHdl(LINK(this,ThumbnailView,OnItemSelected));
AppendItem(pItem);
diff --git a/sfx2/source/control/templatesearchview.cxx b/sfx2/source/control/templatesearchview.cxx
index 16fc7e2028c6..fa6a00997660 100644
--- a/sfx2/source/control/templatesearchview.cxx
+++ b/sfx2/source/control/templatesearchview.cxx
@@ -42,7 +42,6 @@ void TemplateSearchView::AppendItem(sal_uInt16 nAssocItemId, sal_uInt16 nRegionI
pItem->maTitle = rTitle;
pItem->setSubTitle(rSubtitle);
pItem->setPath(rPath);
- pItem->setSelectClickHdl(LINK(this,ThumbnailView,OnItemSelected));
ThumbnailView::AppendItem(pItem);
diff --git a/sfx2/source/control/thumbnailviewitem.cxx b/sfx2/source/control/thumbnailviewitem.cxx
index 68586ba42f37..ba82a1efd51c 100644
--- a/sfx2/source/control/thumbnailviewitem.cxx
+++ b/sfx2/source/control/thumbnailviewitem.cxx
@@ -259,11 +259,6 @@ void ThumbnailViewItem::calculateItemsPosition (const long nThumbnailHeight, con
maTextEditMaxArea = Rectangle( aPos, aEditSize );
}
-void ThumbnailViewItem::setSelectClickHdl (const Link<> &link)
-{
- maClickHdl = link;
-}
-
void ThumbnailViewItem::Paint (drawinglayer::processor2d::BaseProcessor2D *pProcessor,
const ThumbnailItemAttributes *pAttrs)
{