diff options
author | Caolán McNamara <caolanm@redhat.com> | 2013-10-09 11:59:58 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-10-09 13:17:28 +0100 |
commit | 69c842a4f3cd274c62b0539eb2bcbd3c0cc8879c (patch) | |
tree | ec69b6d52884d0f10e56677a18ffa074cb34a3c6 /sd/source/ui/view/ViewShellManager.cxx | |
parent | 5089bdb234a93bcb62b597c18b8ab66048246b13 (diff) |
update unusedcode list
Change-Id: I201985753fc53f037807e7870c6786a442717d6e
Diffstat (limited to 'sd/source/ui/view/ViewShellManager.cxx')
-rw-r--r-- | sd/source/ui/view/ViewShellManager.cxx | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/sd/source/ui/view/ViewShellManager.cxx b/sd/source/ui/view/ViewShellManager.cxx index 093e6e90e6ba..bfb8ef893439 100644 --- a/sd/source/ui/view/ViewShellManager.cxx +++ b/sd/source/ui/view/ViewShellManager.cxx @@ -123,7 +123,6 @@ public: void SetFormShell (const ViewShell* pViewShell, FmFormShell* pFormShell, bool bAbove); void ActivateSubShell (const SfxShell& rParentShell, ShellId nId); void DeactivateSubShell (const SfxShell& rParentShell, ShellId nId); - void MoveSubShellToTop (const SfxShell& rParentShell, ShellId nId); void MoveToTop (const SfxShell& rParentShell); SfxShell* GetShell (ShellId nId) const; SfxShell* GetTopShell (void) const; @@ -302,17 +301,6 @@ void ViewShellManager::DeactivateViewShell (const ViewShell* pShell) -void ViewShellManager::MoveSubShellToTop ( - const ViewShell& rParentShell, - ShellId nId) -{ - if (mbValid) - mpImpl->MoveSubShellToTop(rParentShell, nId); -} - - - - void ViewShellManager::SetFormShell ( const ViewShell* pParentShell, FmFormShell* pFormShell, @@ -709,34 +697,6 @@ void ViewShellManager::Implementation::DeactivateSubShell ( -void ViewShellManager::Implementation::MoveSubShellToTop ( - const SfxShell& rParentShell, - ShellId nId) -{ - SubShellList::iterator iList (maActiveSubShells.find(&rParentShell)); - if (iList != maActiveSubShells.end()) - { - // Look up the sub shell. - SubShellSubList& rList (iList->second); - SubShellSubList::iterator iShell ( - ::std::find_if(rList.begin(),rList.end(), IsId(nId))); - if (iShell!=rList.end() && iShell!=rList.begin()) - { - SubShellSubList::value_type aEntry (*iShell); - rList.erase(iShell); - rList.push_front(aEntry); - } - } - else - { - // Ignore this call when there are no sub shells for the given - // parent shell. We could remember the sub shell to move to the top - // but we do not. Do call this method at a later time instead. - } -} - - - void ViewShellManager::Implementation::MoveToTop (const SfxShell& rShell) { ::osl::MutexGuard aGuard (maMutex); |