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

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

Details

Message ID 1527063943-13297-3-git-send-email-eucan@de.adit-jv.com
State New
Series "Transition rework part 1"
Headers show

Commit Message

Ucan, Emre (ADITG/ESB) May 23, 2018, 8:25 a.m.
we can use VIEW_MOVE_RESIZE instead

Signed-off-by: Emre Ucan <eucan@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(-)

Patch hide | download patch | download mbox

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;
 	}