summaryrefslogtreecommitdiff
path: root/sdext
diff options
context:
space:
mode:
authorSamuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>2019-10-28 19:05:00 +0100
committerSamuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>2019-10-29 10:26:44 +0100
commitca77ba6d9c28e82d6e63f9cd19794ce678accae2 (patch)
treec42362dec3adc49891790da8e0e4df552d3b993f /sdext
parent37cbd4f5d6335186244022392c2bc60f3db27be0 (diff)
Remove unused XMouseMotionListener from PresenterButton
Change-Id: I2ee99fa24fa949aedcd8d94fff68449441b9da6d Reviewed-on: https://gerrit.libreoffice.org/81646 Tested-by: Jenkins Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Diffstat (limited to 'sdext')
-rw-r--r--sdext/source/presenter/PresenterButton.cxx14
-rw-r--r--sdext/source/presenter/PresenterButton.hxx9
2 files changed, 1 insertions, 22 deletions
diff --git a/sdext/source/presenter/PresenterButton.cxx b/sdext/source/presenter/PresenterButton.cxx
index 9632cb78945b..725cda10c0bc 100644
--- a/sdext/source/presenter/PresenterButton.cxx
+++ b/sdext/source/presenter/PresenterButton.cxx
@@ -132,7 +132,6 @@ PresenterButton::PresenterButton (
mxWindow->setVisible(true);
mxWindow->addPaintListener(this);
mxWindow->addMouseListener(this);
- mxWindow->addMouseMotionListener(this);
}
catch (RuntimeException&)
{
@@ -157,7 +156,6 @@ void SAL_CALL PresenterButton::disposing()
{
mxWindow->removePaintListener(this);
mxWindow->removeMouseListener(this);
- mxWindow->removeMouseMotionListener(this);
Reference<lang::XComponent> xComponent = mxWindow;
mxWindow = nullptr;
if (xComponent.is())
@@ -291,18 +289,6 @@ void SAL_CALL PresenterButton::mouseExited (const css::awt::MouseEvent&)
Invalidate();
}
-//----- XMouseMotionListener --------------------------------------------------
-
-void SAL_CALL PresenterButton::mouseMoved (const css::awt::MouseEvent&)
-{
- ThrowIfDisposed();
-}
-
-void SAL_CALL PresenterButton::mouseDragged (const css::awt::MouseEvent&)
-{
- ThrowIfDisposed();
-}
-
//----- lang::XEventListener --------------------------------------------------
void SAL_CALL PresenterButton::disposing (const css::lang::EventObject& rEvent)
diff --git a/sdext/source/presenter/PresenterButton.hxx b/sdext/source/presenter/PresenterButton.hxx
index 03ad7cfea363..9f6a01a6a712 100644
--- a/sdext/source/presenter/PresenterButton.hxx
+++ b/sdext/source/presenter/PresenterButton.hxx
@@ -40,8 +40,7 @@ class PresenterController;
typedef ::cppu::WeakComponentImplHelper <
css::awt::XPaintListener,
- css::awt::XMouseListener,
- css::awt::XMouseMotionListener
+ css::awt::XMouseListener
> PresenterButtonInterfaceBase;
/** Button for the presenter screen. It displays a text surrounded by a
@@ -85,12 +84,6 @@ public:
virtual void SAL_CALL mouseExited (const css::awt::MouseEvent& rEvent) override;
- // XMouseMotionListener
-
- virtual void SAL_CALL mouseMoved (const css::awt::MouseEvent& rEvent) override;
-
- virtual void SAL_CALL mouseDragged (const css::awt::MouseEvent& rEvent) override;
-
// lang::XEventListener
virtual void SAL_CALL disposing (const css::lang::EventObject& rEvent) override;