forked from enlightenment/efl
edje: random code cleanup
Some stuff spotted by scan-build SVN revision: 80676
This commit is contained in:
parent
b1ae408585
commit
1f87c5e933
|
@ -3339,7 +3339,6 @@ st_collections_group_parts_part_name(void)
|
|||
pc->parts = realloc(pc->parts, pc->parts_count * sizeof (Edje_Part *));
|
||||
current_part = pc->parts[i];
|
||||
edje_cc_handlers_hierarchy_rename(ep, current_part);
|
||||
ep = current_part;
|
||||
epp->can_override = EINA_FALSE;
|
||||
break;
|
||||
}
|
||||
|
|
|
@ -1621,7 +1621,7 @@ data_write(void)
|
|||
INF("sounds: %3.5f", ecore_time_get() - t); t = ecore_time_get();
|
||||
pending_threads--;
|
||||
if (pending_threads > 0) ecore_main_loop_begin();
|
||||
INF("THREADS: %3.5f", ecore_time_get() - t); t = ecore_time_get();
|
||||
INF("THREADS: %3.5f", ecore_time_get() - t);
|
||||
|
||||
eet_close(ef);
|
||||
|
||||
|
|
|
@ -823,7 +823,6 @@ compile(void)
|
|||
/*
|
||||
* Run the input through the C pre-processor.
|
||||
*/
|
||||
ret = -1;
|
||||
snprintf(buf2, sizeof(buf2), "%s/edje/utils/epp" EPP_EXT,
|
||||
eina_prefix_lib_get(pfx));
|
||||
if (ecore_file_exists(buf2))
|
||||
|
|
|
@ -21,7 +21,6 @@ _edje_part_pos_set(Edje *ed, Edje_Real_Part *ep, int mode, FLOAT_T pos, FLOAT_T
|
|||
|
||||
fp_pos = pos;
|
||||
|
||||
npos = ZERO;
|
||||
#if 0 // old code - easy to enable for comparing float vs fixed point
|
||||
/* take linear pos along timescale and use interpolation method */
|
||||
switch (mode)
|
||||
|
|
|
@ -1135,9 +1135,9 @@ _edje_object_file_set_internal(Evas_Object *obj, const char *file, const char *g
|
|||
return 1;
|
||||
|
||||
on_error:
|
||||
textblocks = eina_list_free(textblocks);
|
||||
externals = eina_list_free(externals);
|
||||
sources = eina_list_free(sources);
|
||||
eina_list_free(textblocks);
|
||||
eina_list_free(externals);
|
||||
eina_list_free(sources);
|
||||
eina_array_flush(&parts);
|
||||
_edje_thaw(ed);
|
||||
_edje_unblock(ed);
|
||||
|
|
|
@ -226,7 +226,7 @@ _edje_smart_resize(Eo *obj EINA_UNUSED, void *_pd EINA_UNUSED, va_list *list)
|
|||
ed->w = w;
|
||||
ed->h = h;
|
||||
#ifdef HAVE_EPHYSICS
|
||||
if (ed->world)
|
||||
if ((ed->collection) && (ed->world))
|
||||
ephysics_world_render_geometry_set(
|
||||
ed->world, ed->x, ed->y, ed->collection->physics.world.z,
|
||||
ed->w, ed->h, ed->collection->physics.world.depth);
|
||||
|
|
|
@ -186,7 +186,6 @@ _edje_textblock_style_all_update(Edje *ed)
|
|||
|
||||
/* No text classes , goto next style */
|
||||
if (!found) continue;
|
||||
found = 0;
|
||||
if (!txt)
|
||||
txt = eina_strbuf_new();
|
||||
|
||||
|
|
Loading…
Reference in New Issue