[PATCH weston 03/10] compositor-wayland: remove unused 'scale'

Pekka Paalanen ppaalanen at gmail.com
Tue Oct 24 10:16:00 UTC 2017


From: Pekka Paalanen <pekka.paalanen at collabora.co.uk>

This member is only ever set and never read, therefore it is dead.

Delete dead code.

Signed-off-by: Pekka Paalanen <pekka.paalanen at collabora.co.uk>
---
 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;
-- 
2.13.6



More information about the wayland-devel mailing list