From 2606d35ccbc69b28333abbdfb9c41e17cc430363 Mon Sep 17 00:00:00 2001 From: Florian Brosch Date: Mon, 23 Oct 2017 22:39:27 +0200 Subject: [PATCH] timer: Drop useless if in reset. This condition is already part of our contract. --- src/gcal-timer.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/gcal-timer.c b/src/gcal-timer.c index 38fbc0d1..6c95db4a 100644 --- a/src/gcal-timer.c +++ b/src/gcal-timer.c @@ -212,11 +212,8 @@ gcal_timer_reset (GcalTimer *self) g_return_if_fail (self != NULL); g_return_if_fail (gcal_timer_is_running (self)); - if (g_source_get_ready_time ((GSource*) self) >= 0) - { - self->last_event = g_source_get_time ((GSource*) self); - schedule_next (self); - } + self->last_event = g_source_get_time ((GSource*) self); + schedule_next (self); }