sdext/source/presenter/PresenterButton.cxx | 24 ------------------------ sdext/source/presenter/PresenterButton.hxx | 11 ----------- 2 files changed, 35 deletions(-)
New commits: commit 37cbd4f5d6335186244022392c2bc60f3db27be0 Author: Samuel Mehrbrodt <samuel.mehrbr...@cib.de> AuthorDate: Mon Oct 28 19:00:05 2019 +0100 Commit: Samuel Mehrbrodt <samuel.mehrbr...@cib.de> CommitDate: Tue Oct 29 10:13:32 2019 +0100 Remove unused XWindowListener from PresenterButton Change-Id: I98da5679e108f3684243ce4cca03ad54b9fee84a Reviewed-on: https://gerrit.libreoffice.org/81645 Tested-by: Jenkins Reviewed-by: Samuel Mehrbrodt <samuel.mehrbr...@cib.de> diff --git a/sdext/source/presenter/PresenterButton.cxx b/sdext/source/presenter/PresenterButton.cxx index 961e4ff5b425..9632cb78945b 100644 --- a/sdext/source/presenter/PresenterButton.cxx +++ b/sdext/source/presenter/PresenterButton.cxx @@ -130,7 +130,6 @@ PresenterButton::PresenterButton ( xPeer->setBackground(0xff000000); mxWindow->setVisible(true); - mxWindow->addWindowListener(this); mxWindow->addPaintListener(this); mxWindow->addMouseListener(this); mxWindow->addMouseMotionListener(this); @@ -156,7 +155,6 @@ void SAL_CALL PresenterButton::disposing() if (mxWindow.is()) { - mxWindow->removeWindowListener(this); mxWindow->removePaintListener(this); mxWindow->removeMouseListener(this); mxWindow->removeMouseMotionListener(this); @@ -225,28 +223,6 @@ css::geometry::IntegerSize2D const & PresenterButton::GetSize() return maButtonSize; } -//----- XWindowListener ------------------------------------------------------- - -void SAL_CALL PresenterButton::windowResized (const css::awt::WindowEvent&) -{ - ThrowIfDisposed(); -} - -void SAL_CALL PresenterButton::windowMoved (const css::awt::WindowEvent&) -{ - ThrowIfDisposed(); -} - -void SAL_CALL PresenterButton::windowShown (const css::lang::EventObject&) -{ - ThrowIfDisposed(); -} - -void SAL_CALL PresenterButton::windowHidden (const css::lang::EventObject&) -{ - ThrowIfDisposed(); -} - //----- XPaintListener -------------------------------------------------------- void SAL_CALL PresenterButton::windowPaint (const css::awt::PaintEvent& rEvent) diff --git a/sdext/source/presenter/PresenterButton.hxx b/sdext/source/presenter/PresenterButton.hxx index 18a504c20d59..03ad7cfea363 100644 --- a/sdext/source/presenter/PresenterButton.hxx +++ b/sdext/source/presenter/PresenterButton.hxx @@ -39,7 +39,6 @@ namespace sdext { namespace presenter { class PresenterController; typedef ::cppu::WeakComponentImplHelper < - css::awt::XWindowListener, css::awt::XPaintListener, css::awt::XMouseListener, css::awt::XMouseMotionListener @@ -72,16 +71,6 @@ public: const css::uno::Reference<css::awt::XWindow>& rxParentWindow); css::geometry::IntegerSize2D const & GetSize(); - // XWindowListener - - virtual void SAL_CALL windowResized (const css::awt::WindowEvent& rEvent) override; - - virtual void SAL_CALL windowMoved (const css::awt::WindowEvent& rEvent) override; - - virtual void SAL_CALL windowShown (const css::lang::EventObject& rEvent) override; - - virtual void SAL_CALL windowHidden (const css::lang::EventObject& rEvent) override; - // XPaintListener virtual void SAL_CALL windowPaint (const css::awt::PaintEvent& rEvent) override; _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits