video: Remove unused attribute 'allow_attribute'. 63/206163/8
authorSeunghun Lee <shiin.lee@samsung.com>
Wed, 8 May 2019 06:46:47 +0000 (15:46 +0900)
committerSooChan Lim <sc1.lim@samsung.com>
Tue, 28 May 2019 10:44:02 +0000 (10:44 +0000)
It's handled by 'E_Client_Video'

Change-Id: I4fd4daa870ea5c2a3d1916fa55eca0020ceb8ef9

src/bin/video/e_comp_wl_video.c

index ad69028..570a53e 100644 (file)
@@ -30,8 +30,6 @@ struct _E_Video
    E_Client *ec;
    Ecore_Window window;
    Ecore_Event_Handler *vis_eh;
-
-   Eina_Bool  allowed_attribute;
 };
 
 static Eina_List *video_list = NULL;
@@ -309,12 +307,10 @@ _e_comp_wl_video_object_cb_allowed_attribute(struct wl_client *client,
    video = wl_resource_get_user_data(resource);
    EINA_SAFETY_ON_NULL_RETURN(video);
 
-   if(!video->ec || video->allowed_attribute)
+   if(!video->ec)
      return;
 
    VIN("set allowed_attribute");
-
-   video->allowed_attribute = EINA_TRUE;
    e_client_video_property_allow(video->ec);
 }
 
@@ -327,12 +323,10 @@ _e_comp_wl_video_object_cb_disallowed_attribute(struct wl_client *client,
    video = wl_resource_get_user_data(resource);
    EINA_SAFETY_ON_NULL_RETURN(video);
 
-   if(!video->ec || !video->allowed_attribute)
+   if(!video->ec)
      return;
 
    VIN("set disallowed_attribute");
-
-   video->allowed_attribute = EINA_FALSE;
    e_client_video_property_disallow(video->ec);
 }