[PATCH weston 02/11] toytoolkit: Remove window_damage()

Derek Foreman derekf at osg.samsung.com
Wed Nov 18 14:32:25 PST 2015


It's just a direct call to wl_surface_damage() anyway, and the only
caller no longer exists.

Signed-off-by: Derek Foreman <derekf at osg.samsung.com>
---
 clients/window.c | 7 -------
 clients/window.h | 4 ----
 2 files changed, 11 deletions(-)

diff --git a/clients/window.c b/clients/window.c
index 47628de..4353698 100644
--- a/clients/window.c
+++ b/clients/window.c
@@ -4512,13 +4512,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 b61a62a..b92d10c 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);
 
-- 
2.6.2



More information about the wayland-devel mailing list