From 7d560df90e7ee684dc26306f44a0b3c7f8cf2702 Mon Sep 17 00:00:00 2001 From: Simon Zeni Date: Thu, 27 Jan 2022 10:00:57 -0500 Subject: backend/headless: remove unused wlr_headless_input_device --- include/backend/headless.h | 7 ------- include/wlr/backend/headless.h | 9 +-------- 2 files changed, 1 insertion(+), 15 deletions(-) (limited to 'include') diff --git a/include/backend/headless.h b/include/backend/headless.h index e126ac4e..04750900 100644 --- a/include/backend/headless.h +++ b/include/backend/headless.h @@ -11,7 +11,6 @@ struct wlr_headless_backend { struct wl_display *display; struct wl_list outputs; size_t last_output_num; - struct wl_list input_devices; struct wl_listener display_destroy; bool started; }; @@ -26,12 +25,6 @@ struct wlr_headless_output { int frame_delay; // ms }; -struct wlr_headless_input_device { - struct wlr_input_device wlr_input_device; - struct wl_list link; - struct wlr_headless_backend *backend; -}; - struct wlr_headless_backend *headless_backend_from_backend( struct wlr_backend *wlr_backend); diff --git a/include/wlr/backend/headless.h b/include/wlr/backend/headless.h index 07dac9b8..f4735483 100644 --- a/include/wlr/backend/headless.h +++ b/include/wlr/backend/headless.h @@ -25,15 +25,8 @@ struct wlr_backend *wlr_headless_backend_create(struct wl_display *display); */ struct wlr_output *wlr_headless_add_output(struct wlr_backend *backend, unsigned int width, unsigned int height); -/** - * Creates a new input device. The caller is responsible for manually raising - * any event signals on the new input device if it wants to simulate input - * events. - */ -struct wlr_input_device *wlr_headless_add_input_device( - struct wlr_backend *backend, enum wlr_input_device_type type); + bool wlr_backend_is_headless(struct wlr_backend *backend); -bool wlr_input_device_is_headless(struct wlr_input_device *device); bool wlr_output_is_headless(struct wlr_output *output); #endif -- cgit v1.2.3