utils: Remove 24h utility function
The last user of this function is gone now.
This commit is contained in:
@@ -559,29 +559,6 @@ icaltime_compare_with_current (const ICalTime *date1,
|
|||||||
return result;
|
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:
|
* e_strftime_fix_am_pm:
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -83,8 +83,6 @@ gint icaltime_compare_with_current (const ICalTime
|
|||||||
const ICalTime *date2,
|
const ICalTime *date2,
|
||||||
time_t *current_time_t);
|
time_t *current_time_t);
|
||||||
|
|
||||||
gboolean is_clock_format_24h (void);
|
|
||||||
|
|
||||||
/* code brought from evolution */
|
/* code brought from evolution */
|
||||||
gsize e_strftime_fix_am_pm (gchar *str,
|
gsize e_strftime_fix_am_pm (gchar *str,
|
||||||
gsize max,
|
gsize max,
|
||||||
|
|||||||
Reference in New Issue
Block a user