From c1b4c23806582da93d352779cf25d54549f0a9e8 Mon Sep 17 00:00:00 2001 From: Leon Henrik Plickat Date: Mon, 5 Oct 2020 21:18:02 +0200 Subject: Remove unused surface functions --- src/surface.c | 18 ------------------ src/surface.h | 2 -- 2 files changed, 20 deletions(-) diff --git a/src/surface.c b/src/surface.c index ea4387d..106460a 100644 --- a/src/surface.c +++ b/src/surface.c @@ -192,15 +192,6 @@ void destroy_surface (struct Wlclock_surface *surface) free(surface); } -void destroy_all_surfaces (struct Wlclock *clock) -{ - clocklog(clock, 1, "[surface] Destroying all surfaces.\n"); - struct Wlclock_output *op, *tmp; - wl_list_for_each_safe(op, tmp, &clock->outputs, link) - if ( op->surface != NULL ) - destroy_surface(op->surface); -} - void update_surface (struct Wlclock_surface *surface) { if ( surface == NULL || ! surface->configured ) @@ -213,15 +204,6 @@ void update_surface (struct Wlclock_surface *surface) wl_surface_commit(surface->background_surface); } -void update_all_surfaces (struct Wlclock *clock) -{ - clocklog(clock, 1, "[surface] Updating all surfaces.\n"); - struct Wlclock_output *op, *tmp; - wl_list_for_each_safe(op, tmp, &clock->outputs, link) - if ( op->surface != NULL ) - update_surface(op->surface); -} - void update_all_hands (struct Wlclock *clock) { clocklog(clock, 1, "[surface] Updating all hands.\n"); diff --git a/src/surface.h b/src/surface.h index d2dcb25..9d36f69 100644 --- a/src/surface.h +++ b/src/surface.h @@ -30,9 +30,7 @@ struct Wlclock_surface bool create_surface (struct Wlclock_output *output); void destroy_surface (struct Wlclock_surface *surface); -void destroy_all_surfaces (struct Wlclock *clock); void update_surface (struct Wlclock_surface *surface); -void update_all_surfaces (struct Wlclock *clock); void update_all_hands (struct Wlclock *clock); #endif -- cgit v1.2.3