From 21d7c1a850613762f567659708776be2785c0582 Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Wed, 11 Jun 2014 15:15:15 -0400 Subject: [PATCH] wayland-pointer: Remove useless initialization There is no way this value will ever be read, because we set the cursor_surface to NULL, this is set at the same time as cursor_surface, and it's only read if cursor_surface is non-NULL. --- src/wayland/meta-wayland-pointer.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/wayland/meta-wayland-pointer.c b/src/wayland/meta-wayland-pointer.c index a4a5f05e7..136d6407c 100644 --- a/src/wayland/meta-wayland-pointer.c +++ b/src/wayland/meta-wayland-pointer.c @@ -200,8 +200,6 @@ meta_wayland_pointer_init (MetaWaylandPointer *pointer, pointer->cursor_surface = NULL; pointer->cursor_surface_destroy_listener.notify = pointer_handle_cursor_surface_destroy; - pointer->hotspot_x = 16; - pointer->hotspot_y = 16; pointer->default_grab.interface = &default_pointer_grab_interface; pointer->default_grab.pointer = pointer;