[balsa/gmime3: 37/48] Drop redundant get_tz_offset()
- From: Peter Bloomfield <peterb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [balsa/gmime3: 37/48] Drop redundant get_tz_offset()
- Date: Wed, 18 Dec 2019 14:34:09 +0000 (UTC)
commit 2e79f825640cd6c7a9eadf4541b4670fba5daa49
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date: Fri Nov 22 15:46:59 2019 -0800
Drop redundant get_tz_offset()
modified: libbalsa/send.c
libbalsa/send.c | 18 ------------------
1 file changed, 18 deletions(-)
---
diff --git a/libbalsa/send.c b/libbalsa/send.c
index cadd112f8..25a1fbddd 100644
--- a/libbalsa/send.c
+++ b/libbalsa/send.c
@@ -1220,24 +1220,6 @@ parse_content_type(const char *content_type)
}
-/* get_tz_offset() returns tz offset in RFC 5322 format ([-]hhmm) */
-static gint
-get_tz_offset(time_t t)
-{
- GTimeZone *local_tz;
- gint interval;
- gint32 offset;
- gint hours;
-
- local_tz = g_time_zone_new_local();
- interval = g_time_zone_find_interval(local_tz, G_TIME_TYPE_UNIVERSAL, t);
- offset = g_time_zone_get_offset(local_tz, interval);
- g_time_zone_unref(local_tz);
- hours = offset / 3600;
- return (hours * 100) + ((offset - (hours * 3600)) / 60);
-}
-
-
static LibBalsaMsgCreateResult
libbalsa_message_create_mime_message(LibBalsaMessage *message,
gboolean flow,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]