diff options
author | Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> | 2019-10-28 19:00:05 +0100 |
---|---|---|
committer | Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> | 2019-10-29 10:13:32 +0100 |
commit | 37cbd4f5d6335186244022392c2bc60f3db27be0 (patch) | |
tree | 7a193496d8196fd5a283c23803f3fd9cbd27b309 /sdext | |
parent | bfd6beaa8e836c739dcc2af67ebd634f03cb2060 (diff) |
Remove unused XWindowListener from PresenterButton
Change-Id: I98da5679e108f3684243ce4cca03ad54b9fee84a
Reviewed-on: https://gerrit.libreoffice.org/81645
Tested-by: Jenkins
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Diffstat (limited to 'sdext')
-rw-r--r-- | sdext/source/presenter/PresenterButton.cxx | 24 | ||||
-rw-r--r-- | sdext/source/presenter/PresenterButton.hxx | 11 |
2 files changed, 0 insertions, 35 deletions
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; |