[PATCH weston 8/9] ivi-shell: remove surface_set_transition_duration

Emre Ucan eucan at de.adit-jv.com
Wed May 23 08:27:23 UTC 2018


it is not used

Signed-off-by: Emre Ucan <eucan at de.adit-jv.com>
---
 ivi-shell/ivi-layout-export.h |  9 +--------
 ivi-shell/ivi-layout.c        | 17 -----------------
 2 files changed, 1 insertion(+), 25 deletions(-)

diff --git a/ivi-shell/ivi-layout-export.h b/ivi-shell/ivi-layout-export.h
index 834b906..fee7adb 100644
--- a/ivi-shell/ivi-layout-export.h
+++ b/ivi-shell/ivi-layout-export.h
@@ -133,7 +133,7 @@ enum ivi_layout_transition_type{
 	IVI_LAYOUT_TRANSITION_MAX,
 };
 
-#define IVI_LAYOUT_API_NAME "ivi_layout_api_v1"
+#define IVI_LAYOUT_API_NAME "ivi_layout_api_v2"
 
 struct ivi_layout_interface {
 
@@ -298,13 +298,6 @@ struct ivi_layout_interface {
 					  uint32_t duration);
 
 	/**
-	 * \brief set duration of transition animation
-	 */
-	int32_t (*surface_set_transition_duration)(
-					struct ivi_layout_surface *ivisurf,
-					uint32_t duration);
-
-	/**
 	 * layer controller interface
 	 */
 
diff --git a/ivi-shell/ivi-layout.c b/ivi-shell/ivi-layout.c
index b9c21bb..2b6985b 100644
--- a/ivi-shell/ivi-layout.c
+++ b/ivi-shell/ivi-layout.c
@@ -1753,22 +1753,6 @@ ivi_layout_layer_set_fade_info(struct ivi_layout_layer* ivilayer,
 }
 
 static int32_t
-ivi_layout_surface_set_transition_duration(struct ivi_layout_surface *ivisurf,
-					   uint32_t duration)
-{
-	struct ivi_layout_surface_properties *prop;
-
-	if (ivisurf == NULL) {
-		weston_log("%s: invalid argument\n", __func__);
-		return -1;
-	}
-
-	prop = &ivisurf->pending.prop;
-	prop->transition_duration = duration*10;
-	return 0;
-}
-
-static int32_t
 ivi_layout_surface_set_transition(struct ivi_layout_surface *ivisurf,
 				  enum ivi_layout_transition_type type,
 				  uint32_t duration)
@@ -1929,7 +1913,6 @@ static struct ivi_layout_interface ivi_layout_interface = {
 	.surface_add_listener			= ivi_layout_surface_add_listener,
 	.surface_get_weston_surface		= ivi_layout_surface_get_weston_surface,
 	.surface_set_transition			= ivi_layout_surface_set_transition,
-	.surface_set_transition_duration	= ivi_layout_surface_set_transition_duration,
 
 	/**
 	 * layer controller interfaces
-- 
2.7.4



More information about the wayland-devel mailing list