efl_ui_item: remove self field

Summary:
there is no reason to have this field, pd of a item is always passed
with the object.

Reviewers: segfaultxavi, zmike, cedric

Reviewed By: zmike

Subscribers: #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D9423
This commit is contained in:
Marcel Hollerbach 2019-07-29 16:07:25 +02:00 committed by Xavi Artigas
parent d01885ec8b
commit b4f5b78550
2 changed files with 2 additions and 4 deletions

View File

@ -302,7 +302,7 @@ _sizing_eval(Evas_Object *obj, Efl_Ui_Item_Data *pd)
{ {
Evas_Coord minh = -1, minw = -1; Evas_Coord minh = -1, minw = -1;
Evas_Coord rest_w = 0, rest_h = 0; Evas_Coord rest_w = 0, rest_h = 0;
ELM_WIDGET_DATA_GET_OR_RETURN(pd->obj, wd); ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd);
edje_object_size_min_restricted_calc(wd->resize_obj, &minw, &minh, edje_object_size_min_restricted_calc(wd->resize_obj, &minw, &minh,
rest_w, rest_h); rest_w, rest_h);
@ -331,9 +331,8 @@ _efl_ui_item_efl_canvas_group_group_calculate(Eo *obj, Efl_Ui_Item_Data *pd)
} }
EOLIAN static Eo * EOLIAN static Eo *
_efl_ui_item_efl_object_constructor(Eo *obj, Efl_Ui_Item_Data *pd) _efl_ui_item_efl_object_constructor(Eo *obj, Efl_Ui_Item_Data *pd EINA_UNUSED)
{ {
pd->obj = obj;
obj = efl_constructor(efl_super(obj, MY_CLASS)); obj = efl_constructor(efl_super(obj, MY_CLASS));
return obj; return obj;

View File

@ -6,7 +6,6 @@
typedef struct _Efl_Ui_Item_Data typedef struct _Efl_Ui_Item_Data
{ {
// Eo Objects // Eo Objects
Eo *obj; /* Self-Object */
Eo *parent; /* Parent Widget */ Eo *parent; /* Parent Widget */
Ecore_Timer *longpress_timer; /* Timer for longpress handle */ Ecore_Timer *longpress_timer; /* Timer for longpress handle */