diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-08-07 21:44:38 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-08-08 12:58:58 +0200 |
commit | 5a79c78338b0f6a568947d5623a0c93a5e9b2aa3 (patch) | |
tree | cc20f5ec79ce6c3910a227b3e9e2b921aab6fa63 /vcl/source | |
parent | 5d47604c0aecce28b058a01cd1324d87c154c616 (diff) |
loplugin:virtualdead
Change-Id: Ib2a4ebad50e9c6f0d71a9ac3a1bc8ac11e775496
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100378
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/source')
-rw-r--r-- | vcl/source/treelist/iconviewimpl.cxx | 6 | ||||
-rw-r--r-- | vcl/source/treelist/svimpbox.cxx | 35 | ||||
-rw-r--r-- | vcl/source/treelist/treelistbox.cxx | 5 |
3 files changed, 0 insertions, 46 deletions
diff --git a/vcl/source/treelist/iconviewimpl.cxx b/vcl/source/treelist/iconviewimpl.cxx index b0818e94eea1..024ee93fca65 100644 --- a/vcl/source/treelist/iconviewimpl.cxx +++ b/vcl/source/treelist/iconviewimpl.cxx @@ -165,15 +165,12 @@ void IconViewImpl::KeyDown( bool bPageDown ) return; m_nFlags &= ~LBoxFlags::Filling; - BeginScroll(); m_aVerSBar->SetThumbPos( nThumbPos+nDelta ); if( bPageDown ) PageDown( static_cast<short>(nDelta) ); else CursorDown(); - - EndScroll(); } void IconViewImpl::KeyUp( bool bPageUp ) @@ -196,15 +193,12 @@ void IconViewImpl::KeyUp( bool bPageUp ) return; m_nFlags &= ~LBoxFlags::Filling; - BeginScroll(); m_aVerSBar->SetThumbPos( nThumbPos - nDelta ); if( bPageUp ) PageUp( static_cast<short>(nDelta) ); else CursorUp(); - - EndScroll(); } long IconViewImpl::GetEntryLine(const SvTreeListEntry* pEntry) const diff --git a/vcl/source/treelist/svimpbox.cxx b/vcl/source/treelist/svimpbox.cxx index 6e782614a105..22a03342e153 100644 --- a/vcl/source/treelist/svimpbox.cxx +++ b/vcl/source/treelist/svimpbox.cxx @@ -278,7 +278,6 @@ IMPL_LINK_NOARG(SvImpLBox, EndScrollHdl, ScrollBar*, void) m_aVerSBar->SetVisibleSize( m_nNextVerVisSize ); m_nFlags &= ~LBoxFlags::EndScrollSetVisSize; } - EndScroll(); } // handler for vertical scrollbar @@ -299,7 +298,6 @@ IMPL_LINK( SvImpLBox, ScrollUpDownHdl, ScrollBar *, pScrollBar, void ) m_pView->EndEditing( true ); // Cancel m_pView->PaintImmediately(); } - BeginScroll(); if( nDelta > 0 ) { @@ -455,15 +453,12 @@ void SvImpLBox::KeyUp( bool bPageUp ) return; m_nFlags &= ~LBoxFlags::Filling; - BeginScroll(); m_aVerSBar->SetThumbPos( nThumbPos - nDelta ); if( bPageUp ) PageUp( static_cast<short>(nDelta) ); else CursorUp(); - - EndScroll(); } @@ -490,15 +485,12 @@ void SvImpLBox::KeyDown( bool bPageDown ) return; m_nFlags &= ~LBoxFlags::Filling; - BeginScroll(); m_aVerSBar->SetThumbPos( nThumbPos+nDelta ); if( bPageDown ) PageDown( static_cast<short>(nDelta) ); else CursorDown(); - - EndScroll(); } @@ -700,7 +692,6 @@ void SvImpLBox::KeyLeftRight( long nDelta ) { if( !(m_nFlags & LBoxFlags::InResize) ) m_pView->PaintImmediately(); - BeginScroll(); m_nFlags &= ~LBoxFlags::Filling; ShowCursor( false ); @@ -2045,7 +2036,6 @@ void SvImpLBox::MouseButtonUp( const MouseEvent& rMEvt) { if ( !ButtonUpCheckCtrl( rMEvt ) && ( m_aSelEng.GetSelectionMode() != SelectionMode::NONE ) ) m_aSelEng.SelMouseButtonUp( rMEvt ); - EndScroll(); if( m_nFlags & LBoxFlags::StartEditTimer ) { m_nFlags &= ~LBoxFlags::StartEditTimer; @@ -2228,7 +2218,6 @@ bool SvImpLBox::KeyInput( const KeyEvent& rKEvt) if( nThumb ) { KeyLeftRight( nThumb ); - EndScroll(); } } else @@ -2249,7 +2238,6 @@ bool SvImpLBox::KeyInput( const KeyEvent& rKEvt) if( nThumb ) { KeyLeftRight( -nThumb ); - EndScroll(); } else if( m_bSubLstOpLR ) { @@ -2590,9 +2578,6 @@ void ImpLBSelEng::DestroyAnchor() void ImpLBSelEng::SetCursorAtPoint(const Point& rPoint, bool bDontSelectAtCursor) { SvTreeListEntry* pNewCursor = pImp->MakePointVisible( rPoint ); - if( pNewCursor != pImp->m_pCursor ) - pImp->BeginScroll(); - if( pNewCursor ) { // at SimpleTravel, the SetCursor is selected and the select handler is @@ -2833,9 +2818,7 @@ void SvImpLBox::SetDragDropMode( DragDropMode eDDMode ) void SvImpLBox::BeginDrag() { m_nFlags &= ~LBoxFlags::Filling; - BeginScroll(); m_pView->StartDrag( 0, m_aSelEng.GetMousePosPixel() ); - EndScroll(); } void SvImpLBox::PaintDDCursor(SvTreeListEntry* pEntry, bool bShow) @@ -2986,24 +2969,6 @@ void SvImpLBox::Command( const CommandEvent& rCEvt ) } } -void SvImpLBox::BeginScroll() -{ - if( !(m_nFlags & LBoxFlags::InScrolling)) - { - m_nFlags |= LBoxFlags::InScrolling; - } -} - -void SvImpLBox::EndScroll() -{ - if( m_nFlags & LBoxFlags::InScrolling) - { - m_pView->NotifyEndScroll(); - m_nFlags &= ~LBoxFlags::InScrolling; - } -} - - tools::Rectangle SvImpLBox::GetVisibleArea() const { Point aPos( m_pView->GetMapMode().GetOrigin() ); diff --git a/vcl/source/treelist/treelistbox.cxx b/vcl/source/treelist/treelistbox.cxx index cd0729c23350..8a4cfe56454b 100644 --- a/vcl/source/treelist/treelistbox.cxx +++ b/vcl/source/treelist/treelistbox.cxx @@ -1985,7 +1985,6 @@ void SvTreeListBox::ScrollOutputArea( short nDeltaEntries ) pImpl->PageUp( static_cast<sal_uInt16>(nDeltaEntries) ); } pImpl->SyncVerThumb(); - NotifyEndScroll(); } void SvTreeListBox::ScrollToAbsPos( long nPos ) @@ -3184,10 +3183,6 @@ Size SvTreeListBox::GetOutputSizePixel() const return aSize; } -void SvTreeListBox::NotifyEndScroll() -{ -} - void SvTreeListBox::NotifyScrolled() { aScrolledHdl.Call( this ); |