forked from enlightenment/efl
Efl.Ui.Format: remove the dupicalte code
struct tm check is already done at the beginning of the function.
This commit is contained in:
parent
b8789e52ae
commit
952593eef2
|
@ -100,12 +100,6 @@ _default_format_cb(void *data, Eina_Strbuf *str, const Eina_Value value)
|
||||||
eina_value_get(&value, &v);
|
eina_value_get(&value, &v);
|
||||||
eina_strbuf_append_printf(str, sd->template, v);
|
eina_strbuf_append_printf(str, sd->template, v);
|
||||||
}
|
}
|
||||||
else if (type == EINA_VALUE_TYPE_TM)
|
|
||||||
{
|
|
||||||
struct tm v;
|
|
||||||
eina_value_get(&value, &v);
|
|
||||||
eina_strbuf_append_strftime(str, sd->template, &v);
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
char *v = eina_value_to_string(&value);
|
char *v = eina_value_to_string(&value);
|
||||||
|
|
Loading…
Reference in New Issue