From 06d22a8deac2acc465b9eb7264db3729d49f6edd Mon Sep 17 00:00:00 2001 From: Johan Malm Date: Sun, 20 Mar 2022 21:08:14 +0000 Subject: [PATCH] Remove redundant function render_frames() --- include/swaylock.h | 1 - render.c | 7 ------- 2 files changed, 8 deletions(-) diff --git a/include/swaylock.h b/include/swaylock.h index b6daffc..da6e3e9 100644 --- a/include/swaylock.h +++ b/include/swaylock.h @@ -126,7 +126,6 @@ void swaylock_handle_key(struct swaylock_state *state, xkb_keysym_t keysym, uint32_t codepoint); void render_frame_background(struct swaylock_surface *surface); void render_frame(struct swaylock_surface *surface); -void render_frames(struct swaylock_state *state); void damage_surface(struct swaylock_surface *surface); void damage_state(struct swaylock_state *state); void clear_password_buffer(struct swaylock_password *pw); diff --git a/render.c b/render.c index 3dec743..6f6f99a 100644 --- a/render.c +++ b/render.c @@ -331,10 +331,3 @@ void render_frame(struct swaylock_surface *surface) { wl_surface_commit(surface->surface); } - -void render_frames(struct swaylock_state *state) { - struct swaylock_surface *surface; - wl_list_for_each(surface, &state->surfaces, link) { - render_frame(surface); - } -}