summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2020-05-15 20:11:34 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-05-16 09:21:42 +0200
commitb13eb902dfa3ed3f540e257b6865997ff23d560b (patch)
tree1443c191228ab3f701dd059215ce72844eccca21 /vcl
parent27a97ce6f9df24582e07c9f5f920c79ab0851abd (diff)
loplugin:unusedmethods
Change-Id: I52187eccf6170f64d38c673a86dc80818813efa6 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/94328 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/control/combobox.cxx4
-rw-r--r--vcl/source/treelist/svimpbox.cxx12
-rw-r--r--vcl/source/treelist/treelistbox.cxx13
-rw-r--r--vcl/source/window/splitwin.cxx12
-rw-r--r--vcl/source/window/window.cxx6
6 files changed, 2 insertions, 46 deletions
diff --git a/vcl/inc/svimpbox.hxx b/vcl/inc/svimpbox.hxx
index df7d5724663f..5d23b3f2c46b 100644
--- a/vcl/inc/svimpbox.hxx
+++ b/vcl/inc/svimpbox.hxx
@@ -131,7 +131,6 @@ private:
short m_nHorSBarHeight, m_nVerSBarWidth;
bool m_bUpdateMode : 1;
- bool m_bSubLstOpRet : 1; // open/close sublist with return/enter, defaulted with false
bool m_bSubLstOpLR : 1; // open/close sublist with cursor left/right, defaulted with false
bool m_bContextMenuHandling : 1;
bool mbForceMakeVisible;
diff --git a/vcl/source/control/combobox.cxx b/vcl/source/control/combobox.cxx
index 1bdbaa975a9e..72d07497c802 100644
--- a/vcl/source/control/combobox.cxx
+++ b/vcl/source/control/combobox.cxx
@@ -984,10 +984,6 @@ bool ComboBox::IsMultiSelectionEnabled() const
void ComboBox::SetSelectHdl(const Link<ComboBox&,void>& rLink) { m_pImpl->m_SelectHdl = rLink; }
-void ComboBox::SetDoubleClickHdl(const Link<ComboBox&,void>& rLink) { m_pImpl->m_DoubleClickHdl = rLink; }
-
-const Link<ComboBox&,void>& ComboBox::GetDoubleClickHdl() const { return m_pImpl->m_DoubleClickHdl; }
-
void ComboBox::SetEntryActivateHdl(const Link<Edit&,bool>& rLink)
{
if (!m_pImpl->m_pSubEdit)
diff --git a/vcl/source/treelist/svimpbox.cxx b/vcl/source/treelist/svimpbox.cxx
index 64016e99b691..4385c1ae8f9d 100644
--- a/vcl/source/treelist/svimpbox.cxx
+++ b/vcl/source/treelist/svimpbox.cxx
@@ -106,7 +106,7 @@ SvImpLBox::SvImpLBox( SvTreeListBox* pLBView, SvTreeList* pLBTree, WinBits nWinS
m_bInVScrollHdl = false;
m_nFlags |= LBoxFlags::Filling;
- m_bSubLstOpRet = m_bSubLstOpLR = m_bContextMenuHandling = false;
+ m_bSubLstOpLR = m_bContextMenuHandling = false;
}
SvImpLBox::~SvImpLBox()
@@ -2367,15 +2367,7 @@ bool SvImpLBox::KeyInput( const KeyEvent& rKEvt)
break;
case KEY_RETURN:
- if( m_bSubLstOpRet && IsExpandable() )
- {
- if( m_pView->IsExpanded( m_pCursor ) )
- m_pView->Collapse( m_pCursor );
- else
- m_pView->Expand( m_pCursor );
- }
- else
- bKeyUsed = false;
+ bKeyUsed = false;
break;
case KEY_F2:
diff --git a/vcl/source/treelist/treelistbox.cxx b/vcl/source/treelist/treelistbox.cxx
index 75b858b75b30..f88224828832 100644
--- a/vcl/source/treelist/treelistbox.cxx
+++ b/vcl/source/treelist/treelistbox.cxx
@@ -1408,11 +1408,6 @@ void SvTreeListBox::SetNoAutoCurEntry( bool b )
pImpl->SetNoAutoCurEntry( b );
}
-void SvTreeListBox::SetSublistOpenWithReturn()
-{
- pImpl->m_bSubLstOpRet = true;
-}
-
void SvTreeListBox::SetSublistOpenWithLeftRight()
{
pImpl->m_bSubLstOpLR = true;
@@ -1837,14 +1832,6 @@ SvTreeListEntry* SvTreeListBox::CloneEntry( SvTreeListEntry* pSource )
return pClone;
}
-void SvTreeListBox::SetIndent( short nNewIndent )
-{
- nIndent = nNewIndent;
- SetTabs();
- if( IsUpdateMode() )
- Invalidate();
-}
-
const Image& SvTreeListBox::GetDefaultExpandedEntryBmp( ) const
{
return pImpl->GetDefaultEntryExpBmp( );
diff --git a/vcl/source/window/splitwin.cxx b/vcl/source/window/splitwin.cxx
index 4cc59d084554..9acc609c963d 100644
--- a/vcl/source/window/splitwin.cxx
+++ b/vcl/source/window/splitwin.cxx
@@ -2299,18 +2299,6 @@ void SplitWindow::RemoveItem( sal_uInt16 nId )
pOrgParent.clear();
}
-void SplitWindow::Clear()
-{
- // create Main-Set again
- mpMainSet.reset(new ImplSplitSet());
- if ( mnWinStyle & WB_NOSPLITDRAW )
- mpMainSet->mnSplitSize -= 2;
- mpBaseSet = mpMainSet.get();
-
- // and invalidate again
- ImplUpdate();
-}
-
void SplitWindow::SplitItem( sal_uInt16 nId, long nNewSize,
bool bPropSmall, bool bPropGreat )
{
diff --git a/vcl/source/window/window.cxx b/vcl/source/window/window.cxx
index 5e70e2674f95..125e805e108b 100644
--- a/vcl/source/window/window.cxx
+++ b/vcl/source/window/window.cxx
@@ -2961,12 +2961,6 @@ tools::Rectangle Window::GetWindowExtentsRelative( vcl::Window *pRelativeWindow
return ImplGetWindowExtentsRelative( pRelativeWindow, false );
}
-tools::Rectangle Window::GetClientWindowExtentsRelative() const
-{
- // without decoration
- return ImplGetWindowExtentsRelative( nullptr, true );
-}
-
tools::Rectangle Window::ImplGetWindowExtentsRelative( vcl::Window *pRelativeWindow, bool bClientOnly ) const
{
SalFrameGeometry g = mpWindowImpl->mpFrame->GetGeometry();