summaryrefslogtreecommitdiffstats
path: root/sfx2
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-06-11 10:11:40 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-06-11 14:38:37 +0200
commitd4d037619638e1915d15dba81c38a1c9b3157972 (patch)
tree93260b9952c2be6dbb56c7c67eccfb4960608627 /sfx2
parentDerive NativeNumberXmlAttributes2 from NativeNumberXmlAttributes, tdf#115007 ... (diff)
downloadcore-d4d037619638e1915d15dba81c38a1c9b3157972.tar.gz
core-d4d037619638e1915d15dba81c38a1c9b3157972.zip
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')
-rw-r--r--sfx2/source/sidebar/Sidebar.cxx22
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)