[PATCH weston 2/9] ivi-shell: remove unused VIEW_RESIZE transition

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


we can use VIEW_MOVE_RESIZE instead

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

diff --git a/ivi-shell/ivi-layout-export.h b/ivi-shell/ivi-layout-export.h
index b6291f1..b3f5beb 100644
--- a/ivi-shell/ivi-layout-export.h
+++ b/ivi-shell/ivi-layout-export.h
@@ -135,7 +135,6 @@ enum ivi_layout_transition_type{
 	IVI_LAYOUT_TRANSITION_LAYER_FADE,
 	IVI_LAYOUT_TRANSITION_LAYER_MOVE,
 	IVI_LAYOUT_TRANSITION_VIEW_MOVE_RESIZE,
-	IVI_LAYOUT_TRANSITION_VIEW_RESIZE,
 	IVI_LAYOUT_TRANSITION_VIEW_FADE,
 	IVI_LAYOUT_TRANSITION_MAX,
 };
diff --git a/ivi-shell/ivi-layout-transition.c b/ivi-shell/ivi-layout-transition.c
index a223b58..f700f74 100644
--- a/ivi-shell/ivi-layout-transition.c
+++ b/ivi-shell/ivi-layout-transition.c
@@ -98,8 +98,7 @@ is_surface_transition(struct ivi_layout_surface *surface)
 	wl_list_for_each(node, &layout->transitions->transition_list, link) {
 		tran = node->transition;
 
-		if ((tran->type == IVI_LAYOUT_TRANSITION_VIEW_MOVE_RESIZE ||
-		     tran->type == IVI_LAYOUT_TRANSITION_VIEW_RESIZE) &&
+		if ((tran->type == IVI_LAYOUT_TRANSITION_VIEW_MOVE_RESIZE) &&
 		    tran->is_transition_func(tran->private_data, surface))
 			return 1;
 	}
-- 
2.7.4



More information about the wayland-devel mailing list