[gnome-online-accounts] alarm: Remove redundant preprocessor conditional



commit ea9aa0bda589b24eabd9d235b1d994ed0a36ee68
Author: Debarshi Ray <debarshir gnome org>
Date:   Mon Nov 11 14:49:06 2013 +0100

    alarm: Remove redundant preprocessor conditional
    
    Reading the rest of the code, it appears to me that the preprocessor
    conditionals were meant to surpress compiler warnings and errors
    caused by the lack of timerfd support. For the rest of the logic,
    GoaAlarmType is used to separate the different kinds of timers.
    
    Fixes: https://bugzilla.gnome.org/711696

 src/goaidentity/goaalarm.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
---
diff --git a/src/goaidentity/goaalarm.c b/src/goaidentity/goaalarm.c
index a79160e..4916dd7 100644
--- a/src/goaidentity/goaalarm.c
+++ b/src/goaidentity/goaalarm.c
@@ -92,7 +92,6 @@ clear_scheduled_immediate_wakeup (GoaAlarm *self)
 static void
 clear_scheduled_timer_wakeups (GoaAlarm *self, GSource *source, GInputStream *stream)
 {
-#ifdef HAVE_TIMERFD
   GError *error;
   gboolean is_closed;
 
@@ -108,7 +107,6 @@ clear_scheduled_timer_wakeups (GoaAlarm *self, GSource *source, GInputStream *st
     }
 
   g_object_unref (stream);
-#endif
 }
 
 static void


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