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

Submitted by Ucan, Emre (ADITG/ESB) on May 23, 2018, 8:27 a.m.

Details

Message ID 1527064044-13395-4-git-send-email-eucan@de.adit-jv.com
State New
Series "Series without cover letter"
Headers show

Commit Message

Ucan, Emre (ADITG/ESB) May 23, 2018, 8:27 a.m.
it is not used

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

Patch hide | download patch | download mbox

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