gl: remove logically dead code 22/255822/2
authorShinwoo Kim <cinoo.kim@samsung.com>
Wed, 24 Mar 2021 05:17:48 +0000 (14:17 +0900)
committerShinwoo Kim <cinoo.kim@samsung.com>
Wed, 24 Mar 2021 05:26:06 +0000 (14:26 +0900)
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

index b956bea..bdd1869 100755 (executable)
@@ -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)
      {