edje: simplify part handling as we are now guaranteed that a part as no parent when reaching the del intercept.

This commit is contained in:
Cedric BAIL 2018-05-14 14:54:45 -07:00
parent 0bf7a5ea13
commit 94a9a733a5
1 changed files with 4 additions and 6 deletions

View File

@ -35,12 +35,10 @@ _part_proxy_del_cb(Eo *proxy, Eo **static_var)
if (*static_var)
{
if (*static_var != proxy)
efl_del_intercept_set(*static_var, NULL);
}
if (efl_parent_get(proxy))
{
efl_ref(proxy);
efl_parent_set(proxy, NULL);
{
efl_del_intercept_set(*static_var, NULL);
efl_unref(*static_var);
}
}
efl_reuse(proxy);
*static_var = proxy;