[gnome-calendar/wip/flb/weather-forecast: 40/50] timer: Drop useless if in reset.



commit 5a0f674f5cf594e0bbf6c4aebce5c60fe1c92856
Author: Florian Brosch <flo brosch gmail com>
Date:   Mon Oct 23 22:39:27 2017 +0200

    timer: Drop useless if in reset.
    
    This condition is already part of our contract.

 src/gcal-timer.c |    7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/src/gcal-timer.c b/src/gcal-timer.c
index 38fbc0d..6c95db4 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);
 }
 
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]