video: Remove unused variable. 88/247488/1
authorSeunghun Lee <shiin.lee@samsung.com>
Tue, 6 Oct 2020 05:39:10 +0000 (14:39 +0900)
committerSeunghun Lee <shiin.lee@samsung.com>
Wed, 11 Nov 2020 06:25:01 +0000 (15:25 +0900)
Change-Id: I64ed366889acc86afd1da98486076f394af8f27f

src/bin/video/e_comp_wl_video.c

index b3b0cb5..cbef685 100644 (file)
@@ -19,8 +19,6 @@ struct _E_Video_Object
      } client_event_handler;
 };
 
-static Eina_List *_vo_list = NULL;
-
 static void _e_comp_wl_video_object_setup(E_Video_Object *vo, E_Client *ec);
 static void _e_comp_wl_video_object_destroy(E_Video_Object *vo);
 
@@ -58,8 +56,6 @@ _e_comp_wl_video_object_ec_cb_remove(void *data, int type, void *event)
    if (vo->ec != ec) return ECORE_CALLBACK_PASS_ON;
    if (!ec->comp_data) return ECORE_CALLBACK_PASS_ON;
 
-   _vo_list = eina_list_remove(_vo_list, vo);
-
    _e_comp_wl_video_object_destroy(vo);
 
    return ECORE_CALLBACK_PASS_ON;
@@ -82,8 +78,6 @@ _e_comp_wl_video_object_create(struct wl_resource *resource, struct wl_resource
 
    VIN("create.", ec);
 
-   _vo_list = eina_list_append(_vo_list, vo);
-
    _e_comp_wl_video_object_setup(vo, ec);
 
    vo->client_event_handler.remove =
@@ -159,8 +153,6 @@ _e_comp_wl_video_object_resource_destroy(struct wl_resource *resource)
    E_Video_Object *vo = wl_resource_get_user_data(resource);
    EINA_SAFETY_ON_NULL_RETURN(vo);
 
-   _vo_list = eina_list_remove(_vo_list, vo);
-
    _e_comp_wl_video_object_destroy(vo);
 }
 
@@ -465,7 +457,6 @@ e_comp_wl_video_shutdown(void)
    e_comp->wl_comp_data->available_hw_accel.scaler = EINA_FALSE;
 
    E_FREE_FUNC(e_comp->wl_comp_data->video.global, wl_global_destroy);
-   E_FREE_LIST(_vo_list, _e_comp_wl_video_object_destroy);
 
    e_info_server_hook_set("vbuf", NULL, NULL);
    e_info_server_hook_set("video-to-primary", NULL, NULL);