evas: remove image_surface_noscale_region_get from engine backend as it is unused.
authorCedric BAIL <cedric@osg.samsung.com>
Fri, 25 Aug 2017 17:51:13 +0000 (10:51 -0700)
committerCedric BAIL <cedric@osg.samsung.com>
Fri, 25 Aug 2017 17:51:13 +0000 (10:51 -0700)
src/lib/evas/include/evas_private.h
src/modules/evas/engines/gl_generic/evas_engine.c
src/modules/evas/engines/software_generic/evas_engine.c

index b1ae9c7..4fdce26 100644 (file)
@@ -1485,7 +1485,6 @@ struct _Evas_Func
    void (*image_prepare)                   (void *engine, void *image);
 
    void *(*image_surface_noscale_new)      (void *engine, int w, int h, int alpha);
-   void (*image_surface_noscale_region_get)(void *engine, void *image, int *x, int *y, int *w, int *h);
 
    int (*image_native_init)                (void *engine, Evas_Native_Surface_Type type);
    void (*image_native_shutdown)           (void *engine, Evas_Native_Surface_Type type);
index bccfc79..125528e 100644 (file)
@@ -3024,26 +3024,6 @@ eng_image_surface_noscale_new(void *engine, int w, int h, int alpha)
    return evas_gl_common_image_surface_noscale_new(gl_context, w, h, alpha);
 }
 
-static void
-eng_image_surface_noscale_region_get(void *engine EINA_UNUSED, void *image, int *x, int *y, int *w, int *h)
-{
-   Evas_GL_Image *im = image;
-
-   if (im)
-     {
-        *x = im->tex->x;
-        *y = im->tex->y;
-        *w = im->w;
-        *h = im->h;
-        return;
-     }
-
-   *x = 0;
-   *y = 0;
-   *w = 0;
-   *h = 0;
-}
-
 //------------------------------------------------//
 
 static GL_Filter_Apply_Func
@@ -3183,7 +3163,6 @@ module_open(Evas_Module *em)
 
    ORD(image_prepare);
    ORD(image_surface_noscale_new);
-   ORD(image_surface_noscale_region_get);
 
    ORD(font_cache_flush);
    ORD(font_cache_set);
index af80a9b..04bb27d 100644 (file)
@@ -1986,28 +1986,6 @@ eng_image_surface_noscale_new(void *engdata, int w, int h, int alpha)
 }
 
 static void
-eng_image_surface_noscale_region_get(void *engdata EINA_UNUSED, void *image, int *x, int *y, int *w, int *h)
-{
-   RGBA_Image *im = image;
-
-   if (im)
-     {
-        *x = 0;
-        *y = 0;
-        *w = im->cache_entry.w;
-        *h = im->cache_entry.h;
-        return;
-     }
-   else
-     {
-        *x = 0;
-        *y = 0;
-        *w = 0;
-        *h = 0;
-     }
-}
-
-static void
 _image_flip_horizontal(DATA32 *pixels_out, const DATA32 *pixels_in,
                        int iw, int ih)
 {
@@ -4766,7 +4744,6 @@ static Evas_Func func =
      eng_image_data_slice_add,
      eng_image_prepare,
      eng_image_surface_noscale_new,
-     eng_image_surface_noscale_region_get,
      eng_image_native_init,
      eng_image_native_shutdown,
      eng_image_native_set,