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

Jonas Ådahl jadahl at gmail.com
Mon Aug 10 01:21:50 PDT 2015


On Wed, Aug 05, 2015 at 04:32:36PM +1000, Peter Hutterer wrote:
> Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>

Reviewed-by: Jonas Ådahl <jadahl at gmail.com>

> ---
>  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
> 
> _______________________________________________
> wayland-devel mailing list
> wayland-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/wayland-devel


More information about the wayland-devel mailing list