e_client: Remove unnecessary check 90/296690/1
authorSeunghun Lee <shiin.lee@samsung.com>
Thu, 3 Aug 2023 00:53:48 +0000 (09:53 +0900)
committerTizen Window System <tizen.windowsystem@gmail.com>
Thu, 3 Aug 2023 05:58:40 +0000 (14:58 +0900)
There's no point in checking whether given E_Client is deleted during
the e_client_surface_tree_foreach().
This should be checked by a caller if it's needed.

Change-Id: Id54140b1a915938526375c6b3f150e0c1ab08699

src/bin/e_client.c

index 26cb03c..6c8fe3c 100644 (file)
@@ -8539,7 +8539,7 @@ _e_client_surface_tree_foreach_helper(E_Client *ec, E_Client_Surface_Tree_Foreac
    Eina_Bool res = EINA_TRUE;
    E_Comp_Wl_Client_Data *cdata = e_client_cdata_get(ec);
 
-   if ((e_object_is_del(E_OBJECT(ec))) || (!cdata))
+   if (!cdata)
      return res;
 
    EINA_LIST_FOREACH_SAFE(cdata->sub.below_list, l, ll, subc)