diff options
author | Marcus Fritzsch <marcus.fritzsch@xse.de> | 2014-07-24 17:33:53 +0200 |
---|---|---|
committer | Nobuhiko Tanibata <NOBUHIKO_TANIBATA@denso.co.jp> | 2014-08-12 22:15:11 +0900 |
commit | c9c5c30479bacbbce0a1b191edd6354be2e84dfa (patch) | |
tree | e6ee0cd293a596507e015fc20a1f4385db804d16 | |
parent | bfaa109422fc9ba451bdb85ecce907817564e892 (diff) | |
download | wayland-ivi-extension-c9c5c30479bacbbce0a1b191edd6354be2e84dfa.tar.gz |
ilmControl: actually remove get_layer_context()
Signed-off-by: Marcus Fritzsch <marcus.fritzsch@xse.de>
-rw-r--r-- | ivi-layermanagement-api/ilmControl/src/ilm_control_wayland_platform.c | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/ivi-layermanagement-api/ilmControl/src/ilm_control_wayland_platform.c b/ivi-layermanagement-api/ilmControl/src/ilm_control_wayland_platform.c index 3681103..1a76e72 100644 --- a/ivi-layermanagement-api/ilmControl/src/ilm_control_wayland_platform.c +++ b/ivi-layermanagement-api/ilmControl/src/ilm_control_wayland_platform.c @@ -361,8 +361,6 @@ struct ilm_control_context { static int create_controller_layer(struct wayland_context *ctx, t_ilm_uint width, t_ilm_uint height, t_ilm_layer layerid); -static struct layer_context* get_layer_context(struct wayland_context *ctx, struct ivi_controller_layer *ivi_layer); - static int32_t wayland_controller_is_inside_surface_list(struct wl_list *list, uint32_t id_surface) @@ -712,28 +710,6 @@ static struct ivi_controller_layer_listener controller_layer_listener = controller_layer_listener_destroyed_child }; -static struct layer_context* -get_layer_context(struct wayland_context *ctx, - struct ivi_controller_layer *ivi_layer) -{ - struct layer_context *ctx_layer = NULL; - struct wl_proxy *pxy_layer = NULL; - struct wl_proxy *pxy_addlayer = NULL; - uint32_t id_layer = 0; - uint32_t id_addlayer = 0; - - wl_list_for_each(ctx_layer, &ctx->list_layer, link) { - pxy_layer = (struct wl_proxy*)ctx_layer->controller; - pxy_addlayer = (struct wl_proxy*)ivi_layer; - id_layer = wl_proxy_get_id(pxy_layer); - id_addlayer = wl_proxy_get_id(pxy_addlayer); - if (id_layer == id_addlayer) { - return ctx_layer; - } - } - return NULL; -} - static void add_ordersurface_to_layer(struct wayland_context *ctx, struct surface_context *ctx_surf, |