From 953c75575b0f014eca64d1446f9850de543f0b5d Mon Sep 17 00:00:00 2001 From: Benjamin Berg Date: Sun, 9 Jun 2019 18:13:41 +0200 Subject: [PATCH] poll: Remove fpi_timeout_cancel_for_dev The function was committed by accident as part of commit d18e1053 (lib: Add a way to name timeouts). It is not used anywhere and fpi_timeout_cancel_all_for_dev exists, is exported and used and serves the same purpose. --- libfprint/fpi-poll.c | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/libfprint/fpi-poll.c b/libfprint/fpi-poll.c index 0691cc3..3f2c898 100644 --- a/libfprint/fpi-poll.c +++ b/libfprint/fpi-poll.c @@ -207,26 +207,6 @@ void fpi_timeout_cancel(fpi_timeout *timeout) fpi_timeout_free(timeout); } -void -fpi_timeout_cancel_for_dev(struct fp_dev *dev) -{ - GSList *l; - - g_return_if_fail (dev != NULL); - - l = active_timers; - while (l) { - struct fpi_timeout *timeout = l->data; - GSList *current = l; - - l = l->next; - if (timeout->dev == dev) { - fpi_timeout_free (timeout); - active_timers = g_slist_delete_link (active_timers, current); - } - } -} - /* get the expiry time and optionally the timeout structure for the next * timeout. returns 0 if there are no expired timers, or 1 if the * timeval/timeout output parameters were populated. if the returned timeval