From: Amitesh Singh Date: Mon, 27 Nov 2017 07:55:04 +0000 (+0900) Subject: Efl.Ui.Format: remove the dupicalte code X-Git-Tag: submit/sandbox/upgrade/efl120/20180319.053334~1513 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=952593eef24e58d07efe31ff750f114deee9fb02;p=platform%2Fupstream%2Fefl.git Efl.Ui.Format: remove the dupicalte code struct tm check is already done at the beginning of the function. --- diff --git a/src/lib/efl/interfaces/efl_ui_format.c b/src/lib/efl/interfaces/efl_ui_format.c index 390a451..04bf964 100644 --- a/src/lib/efl/interfaces/efl_ui_format.c +++ b/src/lib/efl/interfaces/efl_ui_format.c @@ -100,12 +100,6 @@ _default_format_cb(void *data, Eina_Strbuf *str, const Eina_Value value) eina_value_get(&value, &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 { char *v = eina_value_to_string(&value);