From 04f4c6f417fd72ad741482912f0767aa1f6b1b9f Mon Sep 17 00:00:00 2001 From: Shinwoo Kim Date: Wed, 24 Mar 2021 14:17:48 +0900 Subject: [PATCH] gl: remove logically dead code Lines folowing the label 'rotate_image' is working only tofree is not NULL. Every place is checking if tofree is NULL before calling 'goto rotate_image'. Change-Id: I87e248a6829a0a0561169c91897a203a805b454f --- src/modules/evas/engines/gl_generic/evas_engine.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/modules/evas/engines/gl_generic/evas_engine.c b/src/modules/evas/engines/gl_generic/evas_engine.c index b956bea..bdd1869 100755 --- a/src/modules/evas/engines/gl_generic/evas_engine.c +++ b/src/modules/evas/engines/gl_generic/evas_engine.c @@ -1143,15 +1143,6 @@ eng_image_data_get(void *engine, void *image, int to_write, DATA32 **image_data, rotate_image: // rotate data for image save - - // TIZEN_ONLY(20210125): use rotated texture - if (!tofree && im->rotated_orient != EVAS_IMAGE_ORIENT_NONE) - { - /* already rotated, do not have to rotate */ - return im; - } - // - im_new = _rotate_image_data(engine, image); if (!im_new) { -- 2.7.4