evas vg: clean up code.

This commit is contained in:
Hermet Park 2019-03-11 20:57:49 +09:00
parent fd01eec0f5
commit 5a1f1c4d5f
3 changed files with 4 additions and 6 deletions

View File

@ -1428,9 +1428,6 @@ data_write_vectors(Eet_File *ef, int *vector_num)
{
eina_strbuf_reset(buf);
eina_strbuf_append_printf(buf, "%s" EINA_PATH_SEP_S "%s", s, vector->entry);
f = eina_file_open(eina_strbuf_string_get(buf), EINA_FALSE);
if (!f) continue;
eina_file_close(f);
if (vector->type == EDJE_VECTOR_FILE_TYPE_JSON)
{
@ -1456,6 +1453,10 @@ data_write_vectors(Eet_File *ef, int *vector_num)
}
else
{
f = eina_file_open(eina_strbuf_string_get(buf), EINA_FALSE);
if (!f) continue;
eina_file_close(f);
if (efl_file_set(vg, eina_strbuf_string_get(buf)))
error_and_abort(ef, "Failed to parse svg : %s", vector->entry);
if (efl_file_load(vg))

View File

@ -277,7 +277,6 @@ _efl_canvas_vg_object_efl_file_unload(Eo *eo_obj, Efl_Canvas_Vg_Object_Data *pd)
obj = efl_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
evas_cache_vg_entry_del(pd->vg_entry);
evas_object_change(eo_obj, obj);
eina_stringshare_del(pd->key);
pd->vg_entry = NULL;
}

View File

@ -51,8 +51,6 @@ struct _Efl_Canvas_Vg_Object_Data
double align_x, align_y;
Efl_Canvas_Vg_Fill_Mode fill_mode;
int frame_idx;
Eina_File *file;
Eina_Stringshare *key;
int cached_frame_idx;
Eina_Bool changed : 1;