summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2016-07-13 11:43:12 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2016-07-13 11:43:12 +1000
commit3141b8437e3633f81d94cb9daf91b3af5977f9e9 (patch)
tree4942c2e2d238fa4be6b486da165f053ccb168f06 /src
parent53baf3d17f0bd6f861115157dbf82cb4e87490a3 (diff)
touchpad: drop unused argument diagonal from tp_init_accel
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'src')
-rw-r--r--src/evdev-mt-touchpad.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/evdev-mt-touchpad.c b/src/evdev-mt-touchpad.c
index 4dd6b641..a7b5a872 100644
--- a/src/evdev-mt-touchpad.c
+++ b/src/evdev-mt-touchpad.c
@@ -1776,7 +1776,7 @@ tp_accel_config_get_default_profile(struct libinput_device *libinput_device)
}
static int
-tp_init_accel(struct tp_dispatch *tp, double diagonal)
+tp_init_accel(struct tp_dispatch *tp)
{
struct evdev_device *device = tp->device;
int res_x, res_y;
@@ -2190,7 +2190,6 @@ tp_init(struct tp_dispatch *tp,
struct evdev_device *device)
{
int width, height;
- double diagonal;
tp->base.interface = &tp_interface;
tp->device = device;
@@ -2206,7 +2205,6 @@ tp_init(struct tp_dispatch *tp,
width = device->abs.dimensions.x;
height = device->abs.dimensions.y;
- diagonal = sqrt(width*width + height*height);
tp_init_range_warnings(tp, device, width, height);
@@ -2216,7 +2214,7 @@ tp_init(struct tp_dispatch *tp,
tp_init_hysteresis(tp);
- if (tp_init_accel(tp, diagonal) != 0)
+ if (tp_init_accel(tp) != 0)
return -1;
if (tp_init_tap(tp) != 0)