[PATCH libinput 07/16] filter: drop accel->last, write-only value

Peter Hutterer peter.hutterer at who-t.net
Tue Aug 4 23:32:36 PDT 2015


Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
 src/filter.c | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/src/filter.c b/src/filter.c
index 4f0d8d5..29bf8e5 100644
--- a/src/filter.c
+++ b/src/filter.c
@@ -117,7 +117,6 @@ struct pointer_accelerator {
 
 	double velocity;	/* units/us */
 	double last_velocity;	/* units/us */
-	struct normalized_coords last;
 
 	struct pointer_tracker *trackers;
 	int cur_tracker;
@@ -297,8 +296,6 @@ accelerator_filter(struct motion_filter *filter,
 	accelerated.x = accel_value * unnormalized.x;
 	accelerated.y = accel_value * unnormalized.y;
 
-	accel->last = unnormalized;
-
 	accel->last_velocity = velocity;
 
 	return accelerated;
@@ -386,8 +383,6 @@ create_pointer_accelerator_filter(accel_profile_func_t profile,
 
 	filter->profile = profile;
 	filter->last_velocity = 0.0;
-	filter->last.x = 0;
-	filter->last.y = 0;
 
 	filter->trackers =
 		calloc(NUM_POINTER_TRACKERS, sizeof *filter->trackers);
-- 
2.4.3



More information about the wayland-devel mailing list