forked from enlightenment/efl
Evas render: Remove useless code
While invesigating some clip & map issues, I found some very strange piece of code: { tmp = a; a = c; a = tmp; } This actually comes from a very old code refactoring where a line in-between was removed: tobj = obj->cur.map_parent; obj->cur.map_parent = obj->cur.clipper->cur.map_parent; - evas_object_clip_recalc(obj); obj->cur.map_parent = tobj; Adding this line back there doesn't seem to do anything anyways. So, let's just remove useless code. For the record (legacy evas): commit e1f6f3c5f239dfd95a307949acd5f98831c0c3c0 Date: Fri Aug 17 06:16:04 2012 +0000 evas/render - code refactoring. SVN revision: 75351
This commit is contained in:
parent
ae16cb648a
commit
bd818f7eca
|
@ -1432,24 +1432,11 @@ evas_render_mapped(Evas_Public_Data *e, Evas_Object *eo_obj,
|
|||
|
||||
if (obj->is_smart)
|
||||
{
|
||||
Evas_Object *tobj;
|
||||
|
||||
EINA_COW_STATE_WRITE_BEGIN(obj, state_write, cur)
|
||||
{
|
||||
state_write->cache.clip.dirty = EINA_TRUE;
|
||||
}
|
||||
EINA_COW_STATE_WRITE_END(obj, state_write, cur);
|
||||
|
||||
EINA_COW_WRITE_BEGIN(evas_object_map_cow, obj->map,
|
||||
Evas_Object_Map_Data, map_write)
|
||||
{
|
||||
tobj = map_write->cur.map_parent;
|
||||
map_write->cur.map_parent =
|
||||
obj->cur->clipper->map->cur.map_parent;
|
||||
map_write->cur.map_parent = tobj;
|
||||
}
|
||||
EINA_COW_WRITE_END(evas_object_map_cow, obj->map,
|
||||
map_write);
|
||||
}
|
||||
_evas_render_mapped_context_clip_set(e, eo_obj, obj, context,
|
||||
proxy_render_data, off_x,
|
||||
|
|
Loading…
Reference in New Issue