[PATCH weston 09/16] ivi-shell: remove remove_notification_create_layer
Ucan, Emre (ADITG/SW1)
eucan at de.adit-jv.com
Thu Mar 31 11:09:38 UTC 2016
ivi_layout_remove_notification_create_layer API is
removed, because it is not needed after the changes to
the ivi_layout_add_notification_create_layer.
Signed-off-by: Emre Ucan <eucan at de.adit-jv.com>
---
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 b2c3d2e..5b31733 100644
--- a/ivi-shell/ivi-layout-export.h
+++ b/ivi-shell/ivi-layout-export.h
@@ -138,10 +138,6 @@ enum ivi_layout_transition_type{
IVI_LAYOUT_TRANSITION_MAX,
};
-typedef void (*layer_create_notification_func)(
- struct ivi_layout_layer *ivilayer,
- void *userdata);
-
typedef void (*layer_remove_notification_func)(
struct ivi_layout_layer *ivilayer,
void *userdata);
@@ -338,10 +334,6 @@ struct ivi_layout_interface {
*/
int32_t (*add_listener_create_layer)(struct wl_listener *listener);
- void (*remove_notification_create_layer)(
- layer_create_notification_func callback,
- void *userdata);
-
/**
* \brief register/unregister for notification when ivi_layer is removed
*/
diff --git a/ivi-shell/ivi-layout.c b/ivi-shell/ivi-layout.c
index ac96083..0913f43 100644
--- a/ivi-shell/ivi-layout.c
+++ b/ivi-shell/ivi-layout.c
@@ -1050,14 +1050,6 @@ ivi_layout_add_listener_create_layer(struct wl_listener *listener)
return IVI_SUCCEEDED;
}
-static void
-ivi_layout_remove_notification_create_layer(layer_create_notification_func callback,
- void *userdata)
-{
- struct ivi_layout *layout = get_instance();
- remove_notification(&layout->layer_notification.created.listener_list, callback, userdata);
-}
-
static int32_t
ivi_layout_add_notification_remove_layer(layer_remove_notification_func callback,
void *userdata)
@@ -2189,7 +2181,6 @@ static struct ivi_layout_interface ivi_layout_interface = {
* layer controller interfaces
*/
.add_listener_create_layer = ivi_layout_add_listener_create_layer,
- .remove_notification_create_layer = ivi_layout_remove_notification_create_layer,
.add_notification_remove_layer = ivi_layout_add_notification_remove_layer,
.remove_notification_remove_layer = ivi_layout_remove_notification_remove_layer,
.layer_create_with_dimension = ivi_layout_layer_create_with_dimension,
--
1.7.9.5
More information about the wayland-devel
mailing list