[balsa/gmime3: 38/49] Drop redundant get_tz_offset()
- From: Peter Bloomfield <peterb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [balsa/gmime3: 38/49] Drop redundant get_tz_offset()
- Date: Wed, 26 Feb 2020 23:57:49 +0000 (UTC)
commit 6d0a1dd562e8e0ec5555c3e05514b0c2775e7d45
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 0d2ac9379..6702f054e 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]