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 <pekka.paalanen@collabora.co.uk> Reviewed-by: Quentin Glidic <sardemff7+git@sardemff7.net> Acked-by: Daniel Stone <daniels@collabora.com>
This commit is contained in:
@@ -130,7 +130,6 @@ struct wayland_output {
|
|||||||
} shm;
|
} shm;
|
||||||
|
|
||||||
struct weston_mode mode;
|
struct weston_mode mode;
|
||||||
uint32_t scale;
|
|
||||||
|
|
||||||
struct wl_callback *frame_cb;
|
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.width = output_width;
|
||||||
output->mode.height = output_height;
|
output->mode.height = output_height;
|
||||||
output->mode.refresh = 60000;
|
output->mode.refresh = 60000;
|
||||||
output->scale = output->base.scale;
|
|
||||||
wl_list_insert(&output->base.mode_list, &output->mode.link);
|
wl_list_insert(&output->base.mode_list, &output->mode.link);
|
||||||
|
|
||||||
output->base.current_mode = &output->mode;
|
output->base.current_mode = &output->mode;
|
||||||
|
|||||||
Reference in New Issue
Block a user