libweston: drop weston_output_init() test workaround
This was added in4def21c196
.0c1ab2ad76
removed all uses of NULL weston_compositor, making the workaround unnecessary. Drop the workaround, it's dead code. Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com>
This commit is contained in:
parent
b72785e1f6
commit
b84ad9e34c
@ -7644,12 +7644,6 @@ weston_output_init(struct weston_output *output,
|
||||
pixman_region32_init(&output->region);
|
||||
wl_list_init(&output->mode_list);
|
||||
|
||||
/* At least one test inits outputs with a NULL compositor,
|
||||
* So bail on anything that requires a valid compositor here.
|
||||
*/
|
||||
if (!compositor)
|
||||
return;
|
||||
|
||||
weston_plane_init(&output->primary_plane, compositor);
|
||||
weston_compositor_stack_plane(compositor,
|
||||
&output->primary_plane, NULL);
|
||||
|
Loading…
Reference in New Issue
Block a user