From: SooChan Lim Date: Tue, 10 Mar 2020 23:03:40 +0000 (+0900) Subject: e_comp_wl: remove the unused function X-Git-Tag: submit/tizen/20200313.050725~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4a76d20619f620fad8d84fbf8f8fcc81b1686da7;p=platform%2Fupstream%2Fenlightenment.git e_comp_wl: remove the unused function No need to use e_comp_wl_pid_output_configured_resolution_get(). Change-Id: If63428e1da594f534696e7473e157774f36b1532 --- diff --git a/src/bin/e_comp_wl.c b/src/bin/e_comp_wl.c index b9b069afe7..c9208f415e 100644 --- a/src/bin/e_comp_wl.c +++ b/src/bin/e_comp_wl.c @@ -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) { diff --git a/src/bin/e_comp_wl.h b/src/bin/e_comp_wl.h index 16cefdfa3c..269b93d31c 100644 --- a/src/bin/e_comp_wl.h +++ b/src/bin/e_comp_wl.h @@ -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);