From: SooChan Lim Date: Tue, 3 Nov 2020 02:22:42 +0000 (+0900) Subject: Revert "e_xdg_shell: add null check code" X-Git-Tag: submit/tizen/20201103.033023~15 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ef0270b42d4c50e6abae0b8019b38331c3a66148;p=platform%2Fupstream%2Fenlightenment.git Revert "e_xdg_shell: add null check code" This reverts commit be3a76a570cf8794cfae96528b3cfccf320269db. Change-Id: Ibfacc3c412b1b1a81433b2fee878234499080ab6 --- diff --git a/src/bin/e_xdg_shell_v6.c b/src/bin/e_xdg_shell_v6.c index ca151a6315..a15143f933 100644 --- a/src/bin/e_xdg_shell_v6.c +++ b/src/bin/e_xdg_shell_v6.c @@ -272,8 +272,6 @@ _e_xdg_popup_cb_resource_destroy(struct wl_resource *resource) E_Xdg_Popup *popup; popup = wl_resource_get_user_data(resource); - if (!popup) return; - popup->resource = NULL; _e_client_xdg_shell_v6_role_assingment_unset(popup->base.ec); e_object_unref(E_OBJECT(popup)); @@ -575,8 +573,6 @@ _e_xdg_toplevel_cb_resource_destroy(struct wl_resource *resource) E_Xdg_Toplevel *toplevel; toplevel = wl_resource_get_user_data(resource); - if (!toplevel) return; - toplevel->resource = NULL; _e_client_xdg_shell_v6_role_assingment_unset(toplevel->base.ec); e_object_unref(E_OBJECT(toplevel)); @@ -999,8 +995,6 @@ _e_xdg_positioner_cb_size_set(struct wl_client *client, _validate_size(resource, h); p = wl_resource_get_user_data(resource); - if (!p) return; - p->size.w = w; p->size.h = h; } @@ -1016,8 +1010,6 @@ _e_xdg_positioner_cb_anchor_rect_set(struct wl_client *client, _validate_size(resource, h); p = wl_resource_get_user_data(resource); - if (!p) return; - EINA_RECTANGLE_SET(&p->anchor_rect, x, y, w, h); } @@ -1043,8 +1035,6 @@ _e_xdg_positioner_cb_anchor_set(struct wl_client *client, else { p = wl_resource_get_user_data(resource); - if (!p) return; - p->anchor = anchor; } } @@ -1071,8 +1061,6 @@ _e_xdg_positioner_cb_gravity_set(struct wl_client *client, else { p = wl_resource_get_user_data(resource); - if (!p) return; - p->gravity = gravity; } } @@ -1085,8 +1073,6 @@ _e_xdg_positioner_cb_constraint_adjustment_set(struct wl_client *client, E_Xdg_Positioner *p; p = wl_resource_get_user_data(resource); - if (!p) return; - p->constraint_adjustment = constraint_adjustment; }