diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-10-03 12:57:10 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-10-03 16:34:31 +0200 |
commit | 09f77e8ed51fc64fccc6a14e87eed48b2f15a28d (patch) | |
tree | 2446785df473c004b44bbf03f8eb76584868a1e6 /sfx2 | |
parent | f29aa28100b899252a3419578be5d39e84863c36 (diff) |
loplugin:unusedmethods
Change-Id: I9790d053248ae6bd58ecc026c774014c4e5e04aa
Reviewed-on: https://gerrit.libreoffice.org/80115
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/view/viewsh.cxx | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/sfx2/source/view/viewsh.cxx b/sfx2/source/view/viewsh.cxx index 748d8eefe05b..a6f8567f8aac 100644 --- a/sfx2/source/view/viewsh.cxx +++ b/sfx2/source/view/viewsh.cxx @@ -1305,37 +1305,6 @@ void SfxViewShell::WriteUserDataSequence ( uno::Sequence < beans::PropertyValue } -// returns the number of current available shells of spec. type viewing the specified doc. -size_t SfxViewShell::GetActiveShells ( bool bOnlyVisible ) -{ - size_t nShells = 0; - - // search for a SfxViewShell of the specified type - SfxViewShellArr_Impl &rShells = SfxGetpApp()->GetViewShells_Impl(); - SfxViewFrameArr_Impl &rFrames = SfxGetpApp()->GetViewFrames_Impl(); - for (SfxViewShell* pShell : rShells) - { - if ( pShell ) - { - // sometimes dangling SfxViewShells exist that point to a dead SfxViewFrame - // these ViewShells shouldn't be accessible anymore - // a destroyed ViewFrame is not in the ViewFrame array anymore, so checking this array helps - for (SfxViewFrame* pFrame : rFrames) - { - if ( pFrame == pShell->GetViewFrame() ) - { - // only ViewShells with a valid ViewFrame will be returned - if ( !bOnlyVisible || pFrame->IsVisible() ) - ++nShells; - } - } - } - } - - return nShells; -} - - // returns the first shell of spec. type viewing the specified doc. SfxViewShell* SfxViewShell::GetFirst ( |