diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-09-23 08:48:06 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-09-27 11:48:46 +0200 |
commit | 1534025a0386584a7b8f3f929b10ce5eb33257cf (patch) | |
tree | 7f12dd6763148089cd4fb5495c8fffe84f415e12 /sd/source/ui/docshell | |
parent | 0f2e01677cd0e8857faec99c61d71e88eee78b27 (diff) |
loplugin:methodcycles more graph theory for the win
implemeent a reduction approach, which is good at finding virtual
methods that only themselves or their virtual partners.
The accessibility GetVisArea stuff is dead since
commit 891e41fac81fbd8d5cdb277b26639abfd25a7143
Date: Wed Apr 4 11:23:22 2018 +0200
dead code in AccessibleTextHelper_Impl::UpdateVisibleChildren
Change-Id: I78d9d8bca585ecec8394f2c3fe2baa93db0e58f5
Reviewed-on: https://gerrit.libreoffice.org/60912
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sd/source/ui/docshell')
-rw-r--r-- | sd/source/ui/docshell/docshell.cxx | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/sd/source/ui/docshell/docshell.cxx b/sd/source/ui/docshell/docshell.cxx index 4bc7339b037e..ef981118f6d3 100644 --- a/sd/source/ui/docshell/docshell.cxx +++ b/sd/source/ui/docshell/docshell.cxx @@ -341,51 +341,6 @@ void DrawDocShell::GetState(SfxItemSet &rSet) } } -void DrawDocShell::InPlaceActivate( bool bActive ) -{ - SfxViewFrame* pSfxViewFrame = SfxViewFrame::GetFirst(this, false); - std::vector<std::unique_ptr<FrameView>> &rViews = mpDoc->GetFrameViewList(); - - if( !bActive ) - { - rViews.clear(); - - while (pSfxViewFrame) - { - // determine the number of FrameViews - SfxViewShell* pSfxViewSh = pSfxViewFrame->GetViewShell(); - ViewShell* pViewSh = dynamic_cast<ViewShell*>(pSfxViewSh); - - if ( pViewSh && pViewSh->GetFrameView() ) - { - pViewSh->WriteFrameViewData(); - rViews.push_back( o3tl::make_unique<FrameView>( mpDoc, pViewSh->GetFrameView() ) ); - } - - pSfxViewFrame = SfxViewFrame::GetNext(*pSfxViewFrame, this, false); - } - } - - SfxObjectShell::InPlaceActivate( bActive ); - - if( bActive ) - { - for( std::vector<FrameView*>::size_type i = 0; pSfxViewFrame && (i < rViews.size()); i++ ) - { - // determine the number of FrameViews - SfxViewShell* pSfxViewSh = pSfxViewFrame->GetViewShell(); - ViewShell* pViewSh = dynamic_cast<ViewShell*>(pSfxViewSh); - - if ( pViewSh ) - { - pViewSh->ReadFrameViewData( rViews[ i ].get() ); - } - - pSfxViewFrame = SfxViewFrame::GetNext(*pSfxViewFrame, this, false); - } - } -} - void DrawDocShell::Activate( bool bMDI) { if (bMDI) |