Drop bool InputRedirection::areButtonsPressed() const

Unused code, no longer needed as we have it in the events.
This commit is contained in:
Martin Gräßlin 2016-02-11 16:30:58 +01:00
parent 9b917a20fe
commit b8fcfbb8fc
2 changed files with 0 additions and 11 deletions

View file

@ -1560,16 +1560,6 @@ Qt::MouseButtons InputRedirection::qtButtonStates() const
return buttons;
}
bool InputRedirection::areButtonsPressed() const
{
for (auto it = m_pointerButtons.constBegin(); it != m_pointerButtons.constEnd(); ++it) {
if (it.value() == KWin::InputRedirection::PointerButtonPressed) {
return true;
}
}
return false;
}
static bool acceptsInput(Toplevel *t, const QPoint &pos)
{
const QRegion input = t->inputShape();

View file

@ -214,7 +214,6 @@ private:
void updatePointerInternalWindow();
void pointerInternalWindowVisibilityChanged(bool visible);
void installCursorFromDecoration();
bool areButtonsPressed() const;
void setupWorkspace();
void reconfigure();
void setupInputFilters();