diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2019-09-19 11:39:24 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2019-09-25 04:10:02 +0000 |
commit | d4ede2256c1023dbb9eaaa1fb9a5a70aff4def14 (patch) | |
tree | 45abcb8615883ba4289d01adae34f5dea5e0ce1a /src/evdev-mt-touchpad-thumb.c | |
parent | 79e91f8a30504fc3e97cce1bf069438a934803da (diff) | |
download | libinput-d4ede2256c1023dbb9eaaa1fb9a5a70aff4def14.tar.gz |
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>
Diffstat (limited to 'src/evdev-mt-touchpad-thumb.c')
-rw-r--r-- | src/evdev-mt-touchpad-thumb.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/evdev-mt-touchpad-thumb.c b/src/evdev-mt-touchpad-thumb.c index eb20616a..103cf58a 100644 --- a/src/evdev-mt-touchpad-thumb.c +++ b/src/evdev-mt-touchpad-thumb.c @@ -309,9 +309,6 @@ tp_thumb_update_multifinger(struct tp_dispatch *tp) if (!first || !second) return; - assert(first); - assert(second); - distance.x = abs(first->point.x - second->point.x); distance.y = abs(first->point.y - second->point.y); mm = evdev_device_unit_delta_to_mm(tp->device, &distance); |