diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-05-13 15:16:58 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-05-13 17:56:14 +0200 |
commit | bd537420b07fc82bd9a3eb01f3e5b3b33c21a5cb (patch) | |
tree | d03e7acfa277f07a8d0769e808a019ecc68f32e8 /vcl/source | |
parent | d2cb44507708af41e9ee408c4db08c5bc7b13b43 (diff) |
loplugin:unusedmethods
Change-Id: Id813d95a90fdbb360dfc8670c0b55b635f633965
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/94125
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/source')
-rw-r--r-- | vcl/source/control/combobox.cxx | 5 | ||||
-rw-r--r-- | vcl/source/treelist/iconview.cxx | 3 | ||||
-rw-r--r-- | vcl/source/treelist/treelistbox.cxx | 1 | ||||
-rw-r--r-- | vcl/source/treelist/viewdataentry.cxx | 16 |
4 files changed, 2 insertions, 23 deletions
diff --git a/vcl/source/control/combobox.cxx b/vcl/source/control/combobox.cxx index 873403b60dfd..092a30eb41a1 100644 --- a/vcl/source/control/combobox.cxx +++ b/vcl/source/control/combobox.cxx @@ -1285,11 +1285,6 @@ void ComboBox::DrawEntry(const UserDrawEvent& rEvt, bool bDrawText, bool bDrawTe m_pImpl->m_pImplLB->GetMainWindow()->DrawEntry(*rEvt.GetRenderContext(), rEvt.GetItemId(), /*bDrawImage*/false, bDrawText, bDrawTextAtImagePos); } -void ComboBox::SetSeparatorPos( sal_Int32 n ) -{ - m_pImpl->m_pImplLB->SetSeparatorPos( n ); -} - void ComboBox::AddSeparator( sal_Int32 n ) { m_pImpl->m_pImplLB->AddSeparator( n ); diff --git a/vcl/source/treelist/iconview.cxx b/vcl/source/treelist/iconview.cxx index 527070bac11a..162096bff04c 100644 --- a/vcl/source/treelist/iconview.cxx +++ b/vcl/source/treelist/iconview.cxx @@ -182,9 +182,6 @@ void IconView::PaintEntry(SvTreeListEntry& rEntry, long nX, long nY, // center vertically aEntryPos.AdjustY((nTempEntryHeight - nItemHeight) / 2 ); - // draw item - pViewDataEntry->SetPaintRectangle(aRect); - aEntryPos.AdjustY(15 ); pItem->Paint(aEntryPos, *this, rRenderContext, pViewDataEntry, rEntry); diff --git a/vcl/source/treelist/treelistbox.cxx b/vcl/source/treelist/treelistbox.cxx index 5259cfe7881a..75b858b75b30 100644 --- a/vcl/source/treelist/treelistbox.cxx +++ b/vcl/source/treelist/treelistbox.cxx @@ -2768,7 +2768,6 @@ void SvTreeListBox::PaintEntry1(SvTreeListEntry& rEntry, long nLine, vcl::Render // draw item // center vertically aEntryPos.AdjustY((nTempEntryHeight - aSize.Height()) / 2 ); - pViewDataEntry->SetPaintRectangle(aRect); rItem.Paint(aEntryPos, *this, rRenderContext, pViewDataEntry, rEntry); diff --git a/vcl/source/treelist/viewdataentry.cxx b/vcl/source/treelist/viewdataentry.cxx index 76a3fc7e3c7e..f5fbf8e0bdfb 100644 --- a/vcl/source/treelist/viewdataentry.cxx +++ b/vcl/source/treelist/viewdataentry.cxx @@ -26,8 +26,7 @@ SvViewDataEntry::SvViewDataEntry() : mbExpanded(false), mbFocused(false), mbSelectable(true), - mbDragTarget(false), - maPaintRectangle() + mbDragTarget(false) { } @@ -38,8 +37,7 @@ SvViewDataEntry::SvViewDataEntry( const SvViewDataEntry& rData ) : mbExpanded(rData.mbExpanded), mbFocused(false), mbSelectable(rData.mbSelectable), - mbDragTarget(false), - maPaintRectangle(rData.maPaintRectangle) + mbDragTarget(false) { } @@ -86,14 +84,4 @@ SvViewDataItem& SvViewDataEntry::GetItem(size_t nPos) return maItems[nPos]; } -void SvViewDataEntry::SetPaintRectangle(tools::Rectangle aRectangle) -{ - maPaintRectangle = aRectangle; -} - -const tools::Rectangle& SvViewDataEntry::GetPaintRectangle() const -{ - return maPaintRectangle; -} - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |