aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIsaac Freund <mail@isaacfreund.com>2022-01-28 17:38:39 +0100
committerIsaac Freund <mail@isaacfreund.com>2022-01-28 17:38:39 +0100
commit2c59435e8223339070f963263f2caebf07620078 (patch)
tree23899940e6b9f32cc1c9a944deaa18794f5ccc3c
parent77951968dc9df7214c04c33f4905a9a7aa92f60c (diff)
xdg-output: remove dead code
wlroots current requires wayland-protocols 1.24, so this if is no longer needed and hasn't been for a while.
-rw-r--r--types/wlr_xdg_output_v1.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/types/wlr_xdg_output_v1.c b/types/wlr_xdg_output_v1.c
index 819ea6c6..8d5fee48 100644
--- a/types/wlr_xdg_output_v1.c
+++ b/types/wlr_xdg_output_v1.c
@@ -253,12 +253,6 @@ static void handle_display_destroy(struct wl_listener *listener, void *data) {
struct wlr_xdg_output_manager_v1 *wlr_xdg_output_manager_v1_create(
struct wl_display *display, struct wlr_output_layout *layout) {
- // TODO: require wayland-protocols 1.18 and remove this condition
- int version = OUTPUT_MANAGER_VERSION;
- if (version > zxdg_output_manager_v1_interface.version) {
- version = zxdg_output_manager_v1_interface.version;
- }
-
struct wlr_xdg_output_manager_v1 *manager =
calloc(1, sizeof(struct wlr_xdg_output_manager_v1));
if (manager == NULL) {
@@ -266,7 +260,7 @@ struct wlr_xdg_output_manager_v1 *wlr_xdg_output_manager_v1_create(
}
manager->layout = layout;
manager->global = wl_global_create(display,
- &zxdg_output_manager_v1_interface, version, manager,
+ &zxdg_output_manager_v1_interface, OUTPUT_MANAGER_VERSION, manager,
output_manager_bind);
if (!manager->global) {
free(manager);