Efl.Ui.Format: remove the dupicalte code
authorAmitesh Singh <amitesh.sh@samsung.com>
Mon, 27 Nov 2017 07:55:04 +0000 (16:55 +0900)
committerAmitesh Singh <amitesh.sh@samsung.com>
Mon, 27 Nov 2017 07:55:04 +0000 (16:55 +0900)
struct tm check is already done at the beginning of the function.

src/lib/efl/interfaces/efl_ui_format.c

index 390a451..04bf964 100644 (file)
@@ -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);