e_plane: remove unnecessary static function 45/134245/1
authorChangyeon Lee <cyeon.lee@samsung.com>
Mon, 12 Jun 2017 05:00:53 +0000 (14:00 +0900)
committerChangyeon Lee <cyeon.lee@samsung.com>
Thu, 15 Jun 2017 11:04:23 +0000 (20:04 +0900)
Change-Id: I548fce392a5f5678971b7bfb5e29d2f8e919ff3d

src/bin/e_plane.c

index 7caa2719d0fc69f372af9ed3a19266a5f8e3d595..3f9f4e9ea5c82cf6121328fe384980bee5478088 100644 (file)
@@ -279,22 +279,6 @@ _e_plane_surface_set(E_Plane *plane, tbm_surface_h tsurface)
    return EINA_TRUE;
 }
 
-static void
-_e_plane_surface_on_client_reserved_release(E_Plane *plane, tbm_surface_h tsurface)
-{
-   E_Plane_Renderer *renderer = plane->renderer;
-   E_Client *ec = plane->ec;
-
-   if (!ec)
-     {
-        ERR("no ec at plane.");
-        return;
-     }
-
-   /* release the tsurface */
-   e_plane_renderer_surface_send(renderer, ec, tsurface);
-}
-
 static tbm_surface_h
 _e_plane_surface_from_client_acquire_reserved(E_Plane *plane)
 {
@@ -337,18 +321,6 @@ _e_plane_surface_from_client_acquire_reserved(E_Plane *plane)
    return tsurface;
 }
 
-static void
-_e_plane_surface_on_client_release(E_Plane *plane, tbm_surface_h tsurface)
-{
-   E_Client *ec = plane->ec;
-
-   if (!ec)
-     {
-        ERR("no ec at plane.");
-        return;
-     }
-}
-
 static tbm_surface_h
 _e_plane_surface_from_client_acquire(E_Plane *plane)
 {
@@ -853,16 +825,9 @@ e_plane_unfetch(E_Plane *plane)
    EINA_SAFETY_ON_NULL_RETURN(plane->tsurface);
 
    if (plane->is_fb && !plane->ec)
-     {
-        _e_plane_surface_on_ecore_evas_release(plane, plane->tsurface);
-     }
+     _e_plane_surface_on_ecore_evas_release(plane, plane->tsurface);
    else
-     {
-        if (!plane->ec) return;
-
-        if (plane->reserved_memory) _e_plane_surface_on_client_reserved_release(plane, plane->tsurface);
-        else _e_plane_surface_on_client_release(plane, plane->tsurface);
-     }
+     if (!plane->ec) return;
 
    displaying_tsurface = e_plane_renderer_displaying_surface_get(plane->renderer);
 
@@ -1066,7 +1031,6 @@ e_plane_commit_data_release(E_Plane_Commit_Data *data)
                   if (plane->ec)
                     {
                        e_plane_renderer_surface_queue_release(plane->renderer, displaying_tsurface);
-                       _e_plane_surface_on_client_reserved_release(plane, displaying_tsurface);
                        _e_plane_surface_send_dequeuable_surfaces(plane);
                     }
                   else
@@ -1108,7 +1072,6 @@ e_plane_commit_data_release(E_Plane_Commit_Data *data)
                        if (plane->ec)
                          {
                             e_plane_renderer_surface_queue_release(plane->renderer, displaying_tsurface);
-                            _e_plane_surface_on_client_reserved_release(plane, displaying_tsurface);
                             _e_plane_surface_send_dequeuable_surfaces(plane);
                          }
                        else
@@ -1123,8 +1086,6 @@ e_plane_commit_data_release(E_Plane_Commit_Data *data)
                   /* release */
                   if (displaying_tsurface)
                     {
-                       _e_plane_surface_on_client_release(plane, displaying_tsurface);
-
                        if (!plane->displaying_buffer_ref.buffer)
                          e_plane_renderer_surface_queue_release(plane->renderer, displaying_tsurface);
                    }