From afee695adc4879d88a7d7d25d6a5e87de3986d10 Mon Sep 17 00:00:00 2001 From: Pekka Paalanen Date: Thu, 19 Oct 2017 13:18:14 +0300 Subject: [PATCH] compositor-wayland: remove unused 'scale' This member is only ever set and never read, therefore it is dead. Delete dead code. Signed-off-by: Pekka Paalanen Reviewed-by: Quentin Glidic Acked-by: Daniel Stone --- libweston/compositor-wayland.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/libweston/compositor-wayland.c b/libweston/compositor-wayland.c index 33910316..d61f08c1 100644 --- a/libweston/compositor-wayland.c +++ b/libweston/compositor-wayland.c @@ -130,7 +130,6 @@ struct wayland_output { } shm; struct weston_mode mode; - uint32_t scale; struct wl_callback *frame_cb; }; @@ -1338,7 +1337,6 @@ wayland_output_set_size(struct weston_output *base, int width, int height) output->mode.width = output_width; output->mode.height = output_height; output->mode.refresh = 60000; - output->scale = output->base.scale; wl_list_insert(&output->base.mode_list, &output->mode.link); output->base.current_mode = &output->mode;