mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-05-08 06:38:02 +02:00
touchpad: drop useless asserts()
Just above that line is an early return if either is NULL, so... Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
79e91f8a30
commit
d4ede2256c
1 changed files with 0 additions and 3 deletions
|
|
@ -309,9 +309,6 @@ tp_thumb_update_multifinger(struct tp_dispatch *tp)
|
||||||
if (!first || !second)
|
if (!first || !second)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
assert(first);
|
|
||||||
assert(second);
|
|
||||||
|
|
||||||
distance.x = abs(first->point.x - second->point.x);
|
distance.x = abs(first->point.x - second->point.x);
|
||||||
distance.y = abs(first->point.y - second->point.y);
|
distance.y = abs(first->point.y - second->point.y);
|
||||||
mm = evdev_device_unit_delta_to_mm(tp->device, &distance);
|
mm = evdev_device_unit_delta_to_mm(tp->device, &distance);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue