e_plane: remove unset_ec 94/165094/2
authorChangyeon Lee <cyeon.lee@samsung.com>
Fri, 22 Dec 2017 12:12:44 +0000 (21:12 +0900)
committerSooChan Lim <sc1.lim@samsung.com>
Tue, 26 Dec 2017 09:52:08 +0000 (09:52 +0000)
Change-Id: I654d5c1145b9772b961da2282d2685a8b8517bfa

src/bin/e_plane.c
src/bin/e_plane.h

index bd28d6d..ddab7dc 100644 (file)
@@ -715,13 +715,6 @@ _e_plane_unset_reset(E_Plane *plane)
    if (plane->unset_try)         { plane->unset_try = EINA_FALSE;       print_log = EINA_TRUE; }
    if (plane->unset_commit)      { plane->unset_commit = EINA_FALSE;    print_log = EINA_TRUE; }
 
-   if (plane->unset_ec)
-     {
-        e_object_unref(E_OBJECT(plane->unset_ec));
-        plane->unset_ec = NULL;
-        print_log = EINA_TRUE;
-     }
-
    if (print_log && plane_trace_debug)
      ELOGF("E_PLANE", " Plane(%p) Unset flags Reset", NULL, NULL, plane);
 }
@@ -760,8 +753,6 @@ _e_plane_unset_candidate_set(E_Plane *plane, Eina_Bool sync)
      }
 
    plane->unset_candidate = EINA_TRUE;
-   plane->unset_ec = plane->ec;
-   e_object_ref(E_OBJECT(plane->unset_ec));
 }
 
 static void
@@ -2608,13 +2599,8 @@ e_plane_ec_set(E_Plane *plane, E_Client *ec)
                       e_plane_is_unset_try(plane) ||
                       plane->unset_commit)
                     {
-                       if (plane->unset_ec != ec)
-                         {
-                            INF("Trying to unset plane:%p zpos:%d", plane, plane->zpos);
-                            return EINA_FALSE;
-                         }
-                       else
-                         _e_plane_unset_reset(plane);
+                       INF("Trying to unset plane:%p zpos:%d", plane, plane->zpos);
+                       return EINA_FALSE;
                     }
 
                   if ((plane->renderer) && (plane->role != E_PLANE_ROLE_OVERLAY))
index 42dc7d7..90c4602 100644 (file)
@@ -71,7 +71,6 @@ struct _E_Plane
    Eina_Bool             unset_try;
    Eina_Bool             unset_commit;
    int                   unset_counter;
-   E_Client             *unset_ec;
 
    Eina_Bool             is_video;
    Eina_Bool             reserved_video;