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



commit 72e6d277de953b24e488a7b75464883a4abb5ca1
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 442f275..9e0ab64 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]