tests: remove has_wl_drm from struct client

The wl_drm protocol is not being used by the test client. So
remove 'bool has_wl_drm' from 'struct client' and also the
branch that initializes this variable in handle_global().

Signed-off-by: Leandro Ribeiro <leandro.ribeiro@collabora.com>
dev
Leandro Ribeiro 4 years ago committed by Pekka Paalanen
parent a7e0e717a9
commit 6b4d48736f
  1. 2
      tests/weston-test-client-helper.c
  2. 1
      tests/weston-test-client-helper.h

@ -792,8 +792,6 @@ handle_global(void *data, struct wl_registry *registry,
&weston_test_interface, version);
weston_test_add_listener(test->weston_test, &test_listener, test);
client->test = test;
} else if (strcmp(interface, "wl_drm") == 0) {
client->has_wl_drm = true;
}
}

@ -57,7 +57,6 @@ struct client {
struct surface *surface;
int has_argb;
struct wl_list global_list;
bool has_wl_drm;
struct wl_list output_list; /* struct output::link */
};

Loading…
Cancel
Save