diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-06-11 10:11:40 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-06-11 14:38:37 +0200 |
commit | d4d037619638e1915d15dba81c38a1c9b3157972 (patch) | |
tree | 93260b9952c2be6dbb56c7c67eccfb4960608627 /sfx2/source | |
parent | 807d4382cb021d2ac3ea99d6757a7b368a32941d (diff) |
loplugin:unusedmethods
Change-Id: I26a0da1ec9cda9030371977596053a45303756a0
Reviewed-on: https://gerrit.libreoffice.org/55609
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sfx2/source')
-rw-r--r-- | sfx2/source/sidebar/Sidebar.cxx | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/sfx2/source/sidebar/Sidebar.cxx b/sfx2/source/sidebar/Sidebar.cxx index 7abf8ace8db8..06420d437702 100644 --- a/sfx2/source/sidebar/Sidebar.cxx +++ b/sfx2/source/sidebar/Sidebar.cxx @@ -50,28 +50,6 @@ void Sidebar::ShowPanel ( pController->GetFocusManager().GrabFocusPanel(); } -void Sidebar::TogglePanel ( - const OUString& rsPanelId, - const css::uno::Reference<frame::XFrame>& rxFrame) -{ - SidebarController* pController = SidebarController::GetSidebarControllerForFrame(rxFrame); - if (!pController) - return; - - std::shared_ptr<PanelDescriptor> xPanelDescriptor = pController->GetResourceManager()->GetPanelDescriptor(rsPanelId); - - if (!xPanelDescriptor) - return; - - // This should be a lot more sophisticated: - // - Make the deck switching asynchronous - // - Make sure to use a context that really shows the panel - - // All that is not necessary for the current use cases so lets - // keep it simple for the time being. - pController->OpenThenToggleDeck(xPanelDescriptor->msDeckId); -} - bool Sidebar::IsPanelVisible( const OUString& rsPanelId, const css::uno::Reference<frame::XFrame>& rxFrame) |