Evas image: Remove useless piece of code
authorJean-Philippe Andre <jp.andre@samsung.com>
Wed, 1 Jul 2015 05:19:25 +0000 (14:19 +0900)
committerJean-Philippe Andre <jp.andre@samsung.com>
Wed, 1 Jul 2015 11:46:34 +0000 (20:46 +0900)
Not only is it useless, it is very likely to make the function call
fail (data_get is quite likely to fail with GL).

src/lib/evas/canvas/evas_object_image.c

index 4fe6e14..7134783 100644 (file)
@@ -4201,18 +4201,6 @@ evas_object_image_is_inside(Evas_Object *eo_obj,
           }
         else
           {
-             void *im;
-             DATA32 *data = NULL;
-             int err = 0;
-
-             im = ENFN->image_data_get(ENDT, pixels, 0, &data, &err);
-             if ((!im) || (!data) || (err))
-               {
-                  ERR("Couldn't get image pixels %p: im=%p, data=%p, err=%d",
-                      pixels, im, data, err);
-                  goto end;
-               }
-
              idx = evas_object_image_figure_x_fill(eo_obj, obj, o->cur->fill.x, o->cur->fill.w, &idw);
              idy = evas_object_image_figure_y_fill(eo_obj, obj, o->cur->fill.y, o->cur->fill.h, &idh);
              if (idw < 1) idw = 1;
@@ -4468,7 +4456,6 @@ evas_object_image_is_inside(Evas_Object *eo_obj,
           }
      }
 
- end:
    return is_inside;
 }