e_comp_wl: remove the unused function 40/227240/1
authorSooChan Lim <sc1.lim@samsung.com>
Tue, 10 Mar 2020 23:03:40 +0000 (08:03 +0900)
committerSooChan Lim <sc1.lim@samsung.com>
Tue, 10 Mar 2020 23:03:40 +0000 (08:03 +0900)
No need to use e_comp_wl_pid_output_configured_resolution_get().

Change-Id: If63428e1da594f534696e7473e157774f36b1532

src/bin/e_comp_wl.c
src/bin/e_comp_wl.h

index b9b069afe7146d778fa614e19de58c7bcb731f78..c9208f415edeb93fd036799c723f7fc0bea871f4 100644 (file)
@@ -5973,47 +5973,6 @@ e_comp_wl_pid_output_configured_resolution_send(pid_t pid, int w, int h)
    return EINA_TRUE;
 }
 
-EINTERN Eina_Bool
-e_comp_wl_pid_output_configured_resolution_get(pid_t pid, int *w, int *h)
-{
-   E_Comp_Wl_Output *output;
-   pid_t output_pid = 0;
-   Eina_List *l = NULL, *l2 = NULL;
-   struct wl_resource *resource = NULL;
-   Eina_Bool found = EINA_FALSE;
-
-   EINA_SAFETY_ON_TRUE_RETURN_VAL(pid <= 0, EINA_FALSE);
-   EINA_SAFETY_ON_NULL_RETURN_VAL(w, EINA_FALSE);
-   EINA_SAFETY_ON_NULL_RETURN_VAL(h, EINA_FALSE);
-
-   EINA_LIST_FOREACH(e_comp_wl->outputs, l, output)
-     {
-        /* if we have bound resources, send updates */
-        EINA_LIST_FOREACH(output->resources, l2, resource)
-          {
-             wl_client_get_credentials(wl_resource_get_client(resource), &output_pid, NULL, NULL);
-             if (output_pid == pid)
-               {
-                  *w = output->configured_resolution_w;
-                  *h = output->configured_resolution_h;
-                  found = EINA_TRUE;
-                  break;
-               }
-          }
-
-        if (found) break;
-     }
-
-   if (!found)
-     {
-        *w = output->w;
-        *h = output->h;
-        return EINA_FALSE;
-     }
-
-   return EINA_TRUE;
-}
-
 EINTERN void
 e_comp_wl_surface_state_init(E_Comp_Wl_Surface_State *state, int w, int h)
 {
index 16cefdfa3c159120ef85569ef659a46c8b5ad51c..269b93d31c4048f847dec5b93d3f9a8576a2c51e 100644 (file)
@@ -629,7 +629,6 @@ EINTERN void e_comp_wl_trace_serial_debug(Eina_Bool on);
 EINTERN Eina_Bool e_comp_wl_commit_sync_configure(E_Client *ec);
 
 EINTERN Eina_Bool         e_comp_wl_pid_output_configured_resolution_send(pid_t pid, int w, int h);
-EINTERN Eina_Bool         e_comp_wl_pid_output_configured_resolution_get(pid_t pid, int *w, int *h);
 
 EINTERN void    e_comp_wl_surface_state_init(E_Comp_Wl_Surface_State *state, int w, int h);
 EINTERN void    e_comp_wl_surface_state_commit(E_Client *ec, E_Comp_Wl_Surface_State *state);