Commit 6d374910 authored by Peter Hutterer's avatar Peter Hutterer

Drop HandleTouches - it's a noop

With the removal of touch events in 0a4cf80a, this function is a noop. It
merely counted the number of touches but discarded the result. And
UpdateTouchState does the update anyway.

https://bugs.freedesktop.org/show_bug.cgi?id=102209Signed-off-by: Peter Hutterer's avatarPeter Hutterer <peter.hutterer@who-t.net>
parent afa8d7bb
......@@ -2961,24 +2961,6 @@ UpdateTouchState(InputInfoPtr pInfo, struct SynapticsHwState *hw)
SynapticsResetTouchHwState(hw, FALSE);
}
static void
HandleTouches(InputInfoPtr pInfo, struct SynapticsHwState *hw)
{
SynapticsPrivate *priv = (SynapticsPrivate *) pInfo->private;
int new_active_touches = priv->num_active_touches;
int i;
/* Count new number of active touches */
for (i = 0; i < hw->num_mt_mask; i++) {
if (hw->slot_state[i] == SLOTSTATE_OPEN)
new_active_touches++;
else if (hw->slot_state[i] == SLOTSTATE_CLOSE)
new_active_touches--;
}
UpdateTouchState(pInfo, hw);
}
static void
filter_jitter(SynapticsPrivate * priv, int *x, int *y)
{
......@@ -3175,7 +3157,7 @@ HandleState(InputInfoPtr pInfo, struct SynapticsHwState *hw, CARD32 now,
post_button_click(pInfo, 1);
}
HandleTouches(pInfo, hw);
UpdateTouchState(pInfo, hw);
/* Save old values of some state variables */
priv->finger_state = finger;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment