summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2020-08-16 12:45:21 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-08-16 15:26:37 +0200
commit3f9940c2e050830051a31e4b70736132e034a9db (patch)
treef20559316d4fc41bfc84287a67dd64498836c129 /vcl
parent89ca0ed3bc773b2fa65c74a4d3cfbdd3515bc641 (diff)
loplugin:unusedmethods
Change-Id: I2dd10873be73256a3689233c7b1e37bde8f685ee Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100820 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/inc/svimpbox.hxx1
-rw-r--r--vcl/source/treelist/svimpbox.cxx20
-rw-r--r--vcl/source/treelist/svlbitm.cxx6
-rw-r--r--vcl/source/treelist/treelist.cxx13
-rw-r--r--vcl/source/treelist/treelistbox.cxx21
5 files changed, 0 insertions, 61 deletions
diff --git a/vcl/inc/svimpbox.hxx b/vcl/inc/svimpbox.hxx
index 02f8de6d8c72..70173e25a1a7 100644
--- a/vcl/inc/svimpbox.hxx
+++ b/vcl/inc/svimpbox.hxx
@@ -307,7 +307,6 @@ public:
bool GetUpdateMode() const { return m_bUpdateMode; }
tools::Rectangle GetClipRegionRect() const;
bool HasHorScrollBar() const { return m_aHorSBar->IsVisible(); }
- void ShowFocusRect( const SvTreeListEntry* pEntry );
void CallEventListeners( VclEventId nEvent, void* pData = nullptr );
bool IsSelectable( const SvTreeListEntry* pEntry );
diff --git a/vcl/source/treelist/svimpbox.cxx b/vcl/source/treelist/svimpbox.cxx
index a52e3419ad62..4dfe1a9205ef 100644
--- a/vcl/source/treelist/svimpbox.cxx
+++ b/vcl/source/treelist/svimpbox.cxx
@@ -3225,26 +3225,6 @@ void SvImpLBox::StopUserEvent()
}
}
-void SvImpLBox::ShowFocusRect( const SvTreeListEntry* pEntry )
-{
- if( pEntry )
- {
- long nY = GetEntryLine(pEntry);
- tools::Rectangle aRect = m_pView->GetFocusRect(pEntry, nY);
- vcl::Region aOldClip( m_pView->GetClipRegion());
- vcl::Region aClipRegion( GetClipRegionRect() );
- m_pView->SetClipRegion( aClipRegion );
- m_pView->ShowFocus( aRect );
- m_pView->SetClipRegion( aOldClip );
-
- }
- else
- {
- m_pView->HideFocus();
- }
-}
-
-
void SvImpLBox::implInitDefaultNodeImages()
{
if ( s_pDefCollapsed )
diff --git a/vcl/source/treelist/svlbitm.cxx b/vcl/source/treelist/svlbitm.cxx
index 87a32e9612a9..a98814bb5de9 100644
--- a/vcl/source/treelist/svlbitm.cxx
+++ b/vcl/source/treelist/svlbitm.cxx
@@ -50,12 +50,6 @@ void SvLBoxButtonData::InitData( bool _bRadioBtn, const Control* pCtrl )
SetDefaultImages( pCtrl );
}
-SvLBoxButtonData::SvLBoxButtonData( const Control* pControlForSettings )
- : pImpl( new SvLBoxButtonData_Impl )
-{
- InitData( false, pControlForSettings );
-}
-
SvLBoxButtonData::SvLBoxButtonData( const Control* pControlForSettings, bool _bRadioBtn )
: pImpl( new SvLBoxButtonData_Impl )
{
diff --git a/vcl/source/treelist/treelist.cxx b/vcl/source/treelist/treelist.cxx
index 537cf2a5429c..a09ca22baef3 100644
--- a/vcl/source/treelist/treelist.cxx
+++ b/vcl/source/treelist/treelist.cxx
@@ -1493,19 +1493,6 @@ void SvTreeList::GetInsertionPos( SvTreeListEntry const * pEntry, SvTreeListEntr
rPos = k;
}
-bool SvTreeList::HasChildren( const SvTreeListEntry* pEntry ) const
-{
- if ( !pEntry )
- pEntry = pRootItem.get();
-
- return !pEntry->m_Children.empty();
-}
-
-bool SvTreeList::HasParent( const SvTreeListEntry* pEntry ) const
-{
- return pEntry->pParent != pRootItem.get();
-}
-
SvTreeListEntry* SvTreeList::GetEntry( SvTreeListEntry* pParent, sal_uLong nPos ) const
{ if ( !pParent )
pParent = pRootItem.get();
diff --git a/vcl/source/treelist/treelistbox.cxx b/vcl/source/treelist/treelistbox.cxx
index f1ac3f23f01f..7544eef8e563 100644
--- a/vcl/source/treelist/treelistbox.cxx
+++ b/vcl/source/treelist/treelistbox.cxx
@@ -786,11 +786,6 @@ SvTreeListEntry* SvTreeListBox::GetParent( SvTreeListEntry* pEntry ) const
return pModel->GetParent(pEntry);
}
-SvTreeListEntry* SvTreeListBox::GetRootLevelParent( SvTreeListEntry* pEntry ) const
-{
- return pModel->GetRootLevelParent(pEntry);
-}
-
sal_uLong SvTreeListBox::GetChildCount( SvTreeListEntry const * pParent ) const
{
return pModel->GetChildCount(pParent);
@@ -3339,11 +3334,6 @@ void SvTreeListBox::ModelNotification( SvListAction nActionId, SvTreeListEntry*
}
}
-void SvTreeListBox::EndSelection()
-{
- pImpl->EndSelection();
-}
-
SvTreeListEntry* SvTreeListBox::GetFirstEntryInView() const
{
return GetEntry( Point() );
@@ -3363,11 +3353,6 @@ SvTreeListEntry* SvTreeListBox::GetNextEntryInView(SvTreeListEntry* pEntry ) con
}
-void SvTreeListBox::ShowFocusRect( const SvTreeListEntry* pEntry )
-{
- pImpl->ShowFocusRect( pEntry );
-}
-
void SvTreeListBox::DataChanged( const DataChangedEvent& rDCEvt )
{
if( (rDCEvt.GetType()==DataChangedEventType::SETTINGS) && (rDCEvt.GetFlags() & AllSettingsFlags::STYLE) )
@@ -3429,12 +3414,6 @@ VclPtr<PopupMenu> SvTreeListBox::CreateContextMenu()
return nullptr;
}
-void SvTreeListBox::EnableContextMenuHandling()
-{
- assert(pImpl && "-SvTreeListBox::EnableContextMenuHandling(): No implementation!");
- pImpl->m_bContextMenuHandling = true;
-}
-
css::uno::Reference< XAccessible > SvTreeListBox::CreateAccessible()
{
vcl::Window* pParent = GetAccessibleParentWindow();