sdext/source/presenter/PresenterButton.cxx |   14 --------------
 sdext/source/presenter/PresenterButton.hxx |    9 +--------
 2 files changed, 1 insertion(+), 22 deletions(-)

New commits:
commit ca77ba6d9c28e82d6e63f9cd19794ce678accae2
Author:     Samuel Mehrbrodt <samuel.mehrbr...@cib.de>
AuthorDate: Mon Oct 28 19:05:00 2019 +0100
Commit:     Samuel Mehrbrodt <samuel.mehrbr...@cib.de>
CommitDate: Tue Oct 29 10:26:44 2019 +0100

    Remove unused XMouseMotionListener from PresenterButton
    
    Change-Id: I2ee99fa24fa949aedcd8d94fff68449441b9da6d
    Reviewed-on: https://gerrit.libreoffice.org/81646
    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 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;
 
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to