efl_ui_widget: resolve warning about multiple defines
authorMarcel Hollerbach <mail@marcel-hollerbach.de>
Tue, 19 Mar 2019 15:39:59 +0000 (16:39 +0100)
committerYeongjong Lee <yj34.lee@samsung.com>
Tue, 2 Apr 2019 03:45:17 +0000 (12:45 +0900)
Summary:
the difference here is, that the macro before did not print ERR's the
one now does. Hence this commit remove two error messages.

Depends on D8394

Reviewers: zmike, segfaultxavi, cedric, devilhorns

Reviewed By: segfaultxavi

Subscribers: #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D8395

src/lib/elementary/efl_ui_widget.c

index a51001851a1a3b82ab7883ae4f75cd33a1602c8f..cbac01c41168640271bc78e5b91ddfa309dc33a3 100644 (file)
@@ -565,11 +565,6 @@ _logical_parent_eval(Eo *obj EINA_UNUSED, Elm_Widget_Smart_Data *pd, Eina_Bool s
              if (efl_isa(pd->logical.parent, EFL_UI_WIDGET_CLASS))
                {
                   ELM_WIDGET_DATA_GET(pd->logical.parent, logical_wd);
-                  if (!logical_wd)
-                    {
-                       ERR("Widget parent has the wrong type!");
-                       return NULL;
-                    }
                   logical_wd->logical.child_count --;
                }
              old = pd->logical.parent;
@@ -581,11 +576,6 @@ _logical_parent_eval(Eo *obj EINA_UNUSED, Elm_Widget_Smart_Data *pd, Eina_Bool s
              if (efl_isa(parent, EFL_UI_WIDGET_CLASS))
                {
                   ELM_WIDGET_DATA_GET(parent, parent_wd);
-                  if (!parent_wd)
-                    {
-                       ERR("Widget parent has the wrong type!");
-                       return NULL;
-                    }
                   parent_wd->logical.child_count ++;
                }
              pd->logical.parent = parent;