aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/wlr/types/wlr_output_damage.h1
-rw-r--r--types/wlr_output_damage.c9
2 files changed, 0 insertions, 10 deletions
diff --git a/include/wlr/types/wlr_output_damage.h b/include/wlr/types/wlr_output_damage.h
index efb9a707..5dfca406 100644
--- a/include/wlr/types/wlr_output_damage.h
+++ b/include/wlr/types/wlr_output_damage.h
@@ -54,7 +54,6 @@ struct wlr_output_damage {
} events;
struct wl_listener output_destroy;
- struct wl_listener output_mode;
struct wl_listener output_needs_frame;
struct wl_listener output_damage;
struct wl_listener output_frame;
diff --git a/types/wlr_output_damage.c b/types/wlr_output_damage.c
index 64920609..12c2fbe6 100644
--- a/types/wlr_output_damage.c
+++ b/types/wlr_output_damage.c
@@ -13,12 +13,6 @@ static void output_handle_destroy(struct wl_listener *listener, void *data) {
wlr_output_damage_destroy(output_damage);
}
-static void output_handle_mode(struct wl_listener *listener, void *data) {
- struct wlr_output_damage *output_damage =
- wl_container_of(listener, output_damage, output_mode);
- wlr_output_damage_add_whole(output_damage);
-}
-
static void output_handle_needs_frame(struct wl_listener *listener,
void *data) {
struct wlr_output_damage *output_damage =
@@ -94,8 +88,6 @@ struct wlr_output_damage *wlr_output_damage_create(struct wlr_output *output) {
wl_signal_add(&output->events.destroy, &output_damage->output_destroy);
output_damage->output_destroy.notify = output_handle_destroy;
- wl_signal_add(&output->events.mode, &output_damage->output_mode);
- output_damage->output_mode.notify = output_handle_mode;
wl_signal_add(&output->events.needs_frame, &output_damage->output_needs_frame);
output_damage->output_needs_frame.notify = output_handle_needs_frame;
wl_signal_add(&output->events.damage, &output_damage->output_damage);
@@ -114,7 +106,6 @@ void wlr_output_damage_destroy(struct wlr_output_damage *output_damage) {
}
wl_signal_emit_mutable(&output_damage->events.destroy, output_damage);
wl_list_remove(&output_damage->output_destroy.link);
- wl_list_remove(&output_damage->output_mode.link);
wl_list_remove(&output_damage->output_needs_frame.link);
wl_list_remove(&output_damage->output_damage.link);
wl_list_remove(&output_damage->output_frame.link);