[balsa/gmime3: 55/66] Drop redundant get_tz_offset()



commit b9dea1e4aebd84de0984e6ddf272c030692dcd74
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]