utils: Remove 24h utility function

The last user of this function is gone now.
This commit is contained in:
Georges Basile Stavracas Neto
2023-09-23 02:39:39 -03:00
parent 38108ffa7a
commit b26f33ea10
2 changed files with 0 additions and 25 deletions
-23
View File
@@ -559,29 +559,6 @@ icaltime_compare_with_current (const ICalTime *date1,
return result;
}
/**
* is_clock_format_24h:
*
* Retrieves whether the current clock format is
* 12h or 24h based.
*
* Returns: %TRUE if the clock format is 24h, %FALSE
* otherwise.
*/
gboolean
is_clock_format_24h (void)
{
static GSettings *settings = NULL;
g_autofree gchar *clock_format = NULL;
if (!settings)
settings = g_settings_new ("org.gnome.desktop.interface");
clock_format = g_settings_get_string (settings, "clock-format");
return g_strcmp0 (clock_format, "24h") == 0;
}
/**
* e_strftime_fix_am_pm:
*
-2
View File
@@ -83,8 +83,6 @@ gint icaltime_compare_with_current (const ICalTime
const ICalTime *date2,
time_t *current_time_t);
gboolean is_clock_format_24h (void);
/* code brought from evolution */
gsize e_strftime_fix_am_pm (gchar *str,
gsize max,