evas: remove image_content_hint_get from backend as it is unused.
authorCedric BAIL <cedric@osg.samsung.com>
Fri, 25 Aug 2017 17:51:27 +0000 (10:51 -0700)
committerCedric BAIL <cedric@osg.samsung.com>
Fri, 25 Aug 2017 17:51:27 +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 cd8dd73..74ef28d 100644 (file)
@@ -1536,7 +1536,6 @@ struct _Evas_Func
    void *(*image_scaled_update)            (void *engine, void *scaled, void *image, int dst_w, int dst_h, Eina_Bool smooth, Evas_Colorspace cspace);
 
    void (*image_content_hint_set)          (void *engine, void *surface, int hint);
-   int  (*image_content_hint_get)          (void *engine, void *surface);
    int  (*font_pen_coords_get)             (void *engine, Evas_Font_Set *font, const Evas_Text_Props *intl_props, int pos, int *cpen_x, int *cy, int *cadv, int *ch);
    Eina_Bool (*font_text_props_info_create) (void *engine, Evas_Font_Instance *fi, const Eina_Unicode *text, Evas_Text_Props *intl_props, const Evas_BiDi_Paragraph_Props *par_props, size_t pos, size_t len, Evas_Text_Props_Mode mode, const char *lang);
    int  (*font_right_inset_get)            (void *engine, Evas_Font_Set *font, const Evas_Text_Props *text_props);
index 201f681..56f4939 100644 (file)
@@ -1330,14 +1330,6 @@ eng_image_content_hint_set(void *engine, void *image, int hint)
    evas_gl_common_image_content_hint_set(image, hint);
 }
 
-static int
-eng_image_content_hint_get(void *engine EINA_UNUSED, void *image)
-{
-   Evas_GL_Image *gim = image;
-   if (!gim) return EVAS_IMAGE_CONTENT_HINT_NONE;
-   return gim->content_hint;
-}
-
 static void
 eng_image_cache_flush(void *engine)
 {
@@ -3150,7 +3142,6 @@ module_open(Evas_Module *em)
    ORD(image_scaled_update);
 
    ORD(image_content_hint_set);
-   ORD(image_content_hint_get);
 
    ORD(image_cache_flush);
    ORD(image_cache_set);
index 04bb27d..f54c084 100644 (file)
@@ -4787,7 +4787,6 @@ static Evas_Func func =
      eng_image_map_clean,
      NULL, // eng_image_scaled_get - used for live scaling in GL only (fastpath)
      NULL, // eng_image_content_hint_set - software doesn't use it
-     NULL, // eng_image_content_hint_get - software doesn't use it
      eng_font_pen_coords_get,
      eng_font_text_props_info_create,
      eng_font_right_inset_get,