From 118387e54155f581be72ca816d5c4b9c33835842 Mon Sep 17 00:00:00 2001 From: Derek Foreman Date: Wed, 18 Nov 2015 16:32:25 -0600 Subject: toytoolkit: Remove window_damage() It's just a direct call to wl_surface_damage() anyway, and the only caller no longer exists. Signed-off-by: Derek Foreman Reviewed-by: Pekka Paalanen --- clients/window.c | 7 ------- clients/window.h | 4 ---- 2 files changed, 11 deletions(-) (limited to 'clients') diff --git a/clients/window.c b/clients/window.c index f9797a27..db40a436 100644 --- a/clients/window.c +++ b/clients/window.c @@ -4473,13 +4473,6 @@ window_set_text_cursor_position(struct window *window, int32_t x, int32_t y) wl_fixed_from_int(y)); } -void -window_damage(struct window *window, int32_t x, int32_t y, - int32_t width, int32_t height) -{ - wl_surface_damage(window->main_surface->surface, x, y, width, height); -} - static void surface_enter(void *data, struct wl_surface *wl_surface, struct wl_output *wl_output) diff --git a/clients/window.h b/clients/window.h index b61a62a1..b92d10ce 100644 --- a/clients/window.h +++ b/clients/window.h @@ -343,10 +343,6 @@ window_schedule_redraw(struct window *window); void window_schedule_resize(struct window *window, int width, int height); -void -window_damage(struct window *window, int32_t x, int32_t y, - int32_t width, int32_t height); - cairo_surface_t * window_get_surface(struct window *window); -- cgit v1.2.3