ivi_layout_remove_notification_remove_surface API is
removed, because it is not needed after the changes to
the ivi_layout_add_notification_create_surface.

Signed-off-by: Emre Ucan <[email protected]>
---
 ivi-shell/ivi-layout-export.h |    8 --------
 ivi-shell/ivi-layout.c        |    9 ---------
 2 files changed, 17 deletions(-)

diff --git a/ivi-shell/ivi-layout-export.h b/ivi-shell/ivi-layout-export.h
index 7f5e785..b03fd43 100644
--- a/ivi-shell/ivi-layout-export.h
+++ b/ivi-shell/ivi-layout-export.h
@@ -146,10 +146,6 @@ typedef void (*layer_remove_notification_func)(
                        struct ivi_layout_layer *ivilayer,
                        void *userdata);
 
-typedef void (*surface_create_notification_func)(
-                       struct ivi_layout_surface *ivisurf,
-                       void *userdata);
-
 typedef void (*surface_remove_notification_func)(
                        struct ivi_layout_surface *ivisurf,
                        void *userdata);
@@ -183,10 +179,6 @@ struct ivi_layout_interface {
         */
        int32_t (*add_listener_create_surface)(struct wl_listener *listener);
 
-       void (*remove_notification_create_surface)(
-                               surface_create_notification_func callback,
-                               void *userdata);
-
        /**
         * \brief register/unregister for notification when ivi_surface is 
removed
         */
diff --git a/ivi-shell/ivi-layout.c b/ivi-shell/ivi-layout.c
index ac86049..4b4114f 100644
--- a/ivi-shell/ivi-layout.c
+++ b/ivi-shell/ivi-layout.c
@@ -1134,14 +1134,6 @@ ivi_layout_add_listener_create_surface(struct 
wl_listener *listener)
        return IVI_SUCCEEDED;
 }
 
-static void
-ivi_layout_remove_notification_create_surface(surface_create_notification_func 
callback,
-                                             void *userdata)
-{
-       struct ivi_layout *layout = get_instance();
-       
remove_notification(&layout->surface_notification.created.listener_list, 
callback, userdata);
-}
-
 static int32_t
 ivi_layout_add_notification_remove_surface(surface_remove_notification_func 
callback,
                                           void *userdata)
@@ -2202,7 +2194,6 @@ static struct ivi_layout_interface ivi_layout_interface = 
{
         * surface controller interfaces
         */
        .add_listener_create_surface    = 
ivi_layout_add_listener_create_surface,
-       .remove_notification_create_surface     = 
ivi_layout_remove_notification_create_surface,
        .add_notification_remove_surface        = 
ivi_layout_add_notification_remove_surface,
        .remove_notification_remove_surface     = 
ivi_layout_remove_notification_remove_surface,
        .add_notification_configure_surface     = 
ivi_layout_add_notification_configure_surface,
-- 
1.7.9.5

_______________________________________________
wayland-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/wayland-devel

Reply via email to