[gnome-online-accounts/gnome-3-10] alarm: Remove redundant preprocessor conditional
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-online-accounts/gnome-3-10] alarm: Remove redundant preprocessor conditional
- Date: Tue, 12 Nov 2013 16:18:51 +0000 (UTC)
commit feeb32ebb9d360c32eb6dd3b65b6584d12ba1281
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]