From 29b945fd67d1e7eb93cfe66d089977d064c7f7bc Mon Sep 17 00:00:00 2001 From: rbuj Date: Sun, 1 Sep 2019 20:41:47 +0200 Subject: glib-utils: Remove get_time_string() get_time_string() is a local function that wraps strftime(). In contrast to strftime(), g_date_time_format() always produces an UTF-8 string, regardless of the current locale. --- src/glib-utils.c | 21 --------------------- 1 file changed, 21 deletions(-) (limited to 'src/glib-utils.c') diff --git a/src/glib-utils.c b/src/glib-utils.c index 1d90489..9768627 100644 --- a/src/glib-utils.c +++ b/src/glib-utils.c @@ -547,27 +547,6 @@ debug (const char *file, } -char * -get_time_string (time_t time) -{ - struct tm *tm; - char s_time[256]; - char *locale_format = NULL; - char *time_utf8; - - tm = localtime (&time); - /* This is the time format used in the "Date Modified" column and - * in the Properties dialog. See the man page of strftime for an - * explanation of the values. */ - locale_format = g_locale_from_utf8 (_("%d %B %Y, %H:%M"), -1, NULL, NULL, NULL); - strftime (s_time, sizeof (s_time) - 1, locale_format, tm); - g_free (locale_format); - time_utf8 = g_locale_to_utf8 (s_time, -1, NULL, NULL, NULL); - - return time_utf8; -} - - void g_ptr_array_free_full (GPtrArray *array, GFunc free_func, -- cgit v1.2.1