Drop InputRedirection::pointerButtonState(uint32_t button) const

Unused code.
This commit is contained in:
Martin Gräßlin 2016-02-11 16:34:36 +01:00
parent b8fcfbb8fc
commit 768f1be939

19
input.h
View file

@ -87,14 +87,6 @@ public:
* @return const QPointF& The current global pointer position * @return const QPointF& The current global pointer position
*/ */
const QPointF &globalPointer() const; 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::MouseButtons qtButtonStates() const;
Qt::KeyboardModifiers keyboardModifiers() const; Qt::KeyboardModifiers keyboardModifiers() const;
@ -358,17 +350,6 @@ const QPointF &InputRedirection::globalPointer() const
return m_globalPointer; 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 <typename T> template <typename T>
inline inline
void InputRedirection::registerShortcut(const QKeySequence &shortcut, QAction *action, T *receiver, void (T::*slot)()) { void InputRedirection::registerShortcut(const QKeySequence &shortcut, QAction *action, T *receiver, void (T::*slot)()) {