From 768f1be9391fb6d816620ed7891721e4c83bbfe8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Thu, 11 Feb 2016 16:34:36 +0100 Subject: [PATCH] Drop InputRedirection::pointerButtonState(uint32_t button) const Unused code. --- input.h | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/input.h b/input.h index 7c89bbd6a8..b8bd9ad2b0 100644 --- a/input.h +++ b/input.h @@ -87,14 +87,6 @@ public: * @return const QPointF& The current global pointer position */ const QPointF &globalPointer() const; - /** - * @brief The last known state of the @p button. If @p button is still unknown the state is - * @c PointerButtonReleased. - * - * @param button The button for which the last known state should be queried. - * @return KWin::InputRedirection::PointerButtonState - */ - PointerButtonState pointerButtonState(uint32_t button) const; Qt::MouseButtons qtButtonStates() const; Qt::KeyboardModifiers keyboardModifiers() const; @@ -358,17 +350,6 @@ const QPointF &InputRedirection::globalPointer() const return m_globalPointer; } -inline -InputRedirection::PointerButtonState InputRedirection::pointerButtonState(uint32_t button) const -{ - auto it = m_pointerButtons.constFind(button); - if (it != m_pointerButtons.constEnd()) { - return it.value(); - } else { - return KWin::InputRedirection::PointerButtonReleased; - } -} - template inline void InputRedirection::registerShortcut(const QKeySequence &shortcut, QAction *action, T *receiver, void (T::*slot)()) {