diff options
author | Leon Henrik Plickat <leonhenrik.plickat@stud.uni-goettingen.de> | 2020-10-05 21:18:02 +0200 |
---|---|---|
committer | Leon Henrik Plickat <leonhenrik.plickat@stud.uni-goettingen.de> | 2020-10-05 21:18:55 +0200 |
commit | c1b4c23806582da93d352779cf25d54549f0a9e8 (patch) | |
tree | 638526516fe51e975d49b0c228fd2cea87121df3 | |
parent | 47c9525667713a3eb123b005ffb7c8e1fdc86c1a (diff) | |
download | wlclock-c1b4c23806582da93d352779cf25d54549f0a9e8.tar.gz wlclock-c1b4c23806582da93d352779cf25d54549f0a9e8.tar.bz2 |
Remove unused surface functions
-rw-r--r-- | src/surface.c | 18 | ||||
-rw-r--r-- | src/surface.h | 2 |
2 files changed, 0 insertions, 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 |