summaryrefslogtreecommitdiff
path: root/sfx2/source/notebookbar
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2020-04-06 20:54:57 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-04-06 21:41:43 +0200
commit1c64ecadaa7f391cf89d6f57aa798ef614b765a2 (patch)
treef7a66b38f52543317628a134082d1d9e621199d6 /sfx2/source/notebookbar
parent85528c15cf9ad125acd347733ca788acda299c2f (diff)
loplugin:unusedvariableplus in sfx2
Change-Id: I69471cdb274f6a9164d3b4ced4643511cce43d19 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/91778 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sfx2/source/notebookbar')
-rw-r--r--sfx2/source/notebookbar/SfxNotebookBar.cxx7
1 files changed, 0 insertions, 7 deletions
diff --git a/sfx2/source/notebookbar/SfxNotebookBar.cxx b/sfx2/source/notebookbar/SfxNotebookBar.cxx
index a784ffb5e100..674caf4b0bb0 100644
--- a/sfx2/source/notebookbar/SfxNotebookBar.cxx
+++ b/sfx2/source/notebookbar/SfxNotebookBar.cxx
@@ -415,10 +415,6 @@ bool SfxNotebookBar::StateMethod(SystemWindow* pSysWindow,
void SfxNotebookBar::RemoveListeners(SystemWindow const * pSysWindow)
{
- Reference<XContextChangeEventMultiplexer> xMultiplexer
- = ContextChangeEventMultiplexer::get(
- ::comphelper::getProcessComponentContext());
-
if (auto pNotebookBar = pSysWindow->GetNotebookBar())
{
pNotebookBar->StopListeningAllControllers();
@@ -486,9 +482,6 @@ void SfxNotebookBar::ShowMenubar(SfxViewFrame const * pViewFrame, bool bShow)
m_bLock = true;
- uno::Reference<uno::XComponentContext> xContext = comphelper::getProcessComponentContext();
- const Reference<frame::XModuleManager> xModuleManager = frame::ModuleManager::create(xContext);
-
Reference<frame::XFrame> xFrame = pViewFrame->GetFrame().GetFrameInterface();
if (xFrame.is())
{