[balsa/gtk3] Drop redundant glib version check
- From: Peter Bloomfield <peterb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [balsa/gtk3] Drop redundant glib version check
- Date: Mon, 23 May 2016 11:45:54 +0000 (UTC)
commit d21fb7e159e2f9184f57e39b2f53a32eca366bb6
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date: Mon May 23 07:35:04 2016 -0400
Drop redundant glib version check
* libbalsa/imap/imap_search.c (imap_write_key_date): drop
redundant glib version check.
ChangeLog | 5 +++++
libbalsa/imap/imap_search.c | 10 ----------
2 files changed, 5 insertions(+), 10 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 9b3848e..b42b8ea 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2016-05-23 Peter Bloomfield <pbloomfield bellsouth net>
+
+ * libbalsa/imap/imap_search.c (imap_write_key_date): drop
+ redundant glib version check.
+
2016-05-20 Albrecht Dreß
* src/balsa-mime-widget-crypto.c
diff --git a/libbalsa/imap/imap_search.c b/libbalsa/imap/imap_search.c
index d10201a..a6bc504 100644
--- a/libbalsa/imap/imap_search.c
+++ b/libbalsa/imap/imap_search.c
@@ -355,11 +355,7 @@ imap_write_key_date(ImapMboxHandle *handle, ImapSearchDateRange range,
static const char *month[] =
{ "Jan", "Feb", "Mar", "Apr", "May",
"Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec" };
-#if GLIB_CHECK_VERSION(2,10,0)
GDate date;
-#else
- struct tm date;
-#endif
if(!internal) sio_write(handle->sio, "SENT", 4);
switch(range) {
case IMSE_D_BEFORE : sio_write(handle->sio, "BEFORE ", 7); break;
@@ -367,15 +363,9 @@ imap_write_key_date(ImapMboxHandle *handle, ImapSearchDateRange range,
default: /* which is -2, the only remaining option */
case IMSE_D_SINCE : sio_write(handle->sio, "SINCE " , 6); break;
}
-#if GLIB_CHECK_VERSION(2,10,0)
g_date_set_time_t(&date, tm);
sio_printf(handle->sio, "%02d-%s-%04d",
date.day, month[date.month - 1], date.year);
-#else
- localtime_r(&tm, &date);
- sio_printf(handle->sio, "%02d-%s-%04d",
- date.tm_mday, month[date.tm_mon], date.tm_year + 1900);
-#endif
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]