[balsa/gmime3: 45/56] Drop redundant get_tz_offset()



commit 9ef299d9e0de454394ab24165966e74a0bbbd765
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]