From 2065aedc44e5f33dc1a0f0993d38b6c964bbb736 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Andre Date: Thu, 30 Jun 2016 11:47:38 +0900 Subject: [PATCH] win: Remove font & image cache functions Those actually belong to elm_config, or rather Efl.Config: efl_config_int_set("cache_image_cache_size", 42); efl_config_int_set("cache_font_cache_size", 1337); --- src/lib/efl/interfaces/efl_canvas.eo | 28 ---------------------------- src/lib/elementary/efl_ui_win.c | 24 ------------------------ src/lib/elementary/efl_ui_win.eo | 4 ---- 3 files changed, 56 deletions(-) diff --git a/src/lib/efl/interfaces/efl_canvas.eo b/src/lib/efl/interfaces/efl_canvas.eo index 683f493..afcd77f 100644 --- a/src/lib/efl/interfaces/efl_canvas.eo +++ b/src/lib/efl/interfaces/efl_canvas.eo @@ -58,34 +58,6 @@ interface Efl.Canvas () maxh: int; [[Pointer to hold the return value in pixels of the maximum height.]] } } - @property image_cache { - set { - [[Set the image cache. - - This function sets the image cache of canvas in bytes. - ]] - } - get { - [[Get the image cache. - - This function returns the image cache size of canvas in bytes. - ]] - } - values { - size: int; [[The cache size.]] - } - } - @property font_cache { - set { - [[Changes the size of font cache of the given evas.]] - } - get { - [[Get the size of font cache of the given evas in bytes.]] - } - values { - size: int; [[The size in bytes.]] - } - } smart_objects_calculate { [[Call user-provided $calculate smart functions and unset the flag signalling that the object needs to get recalculated to diff --git a/src/lib/elementary/efl_ui_win.c b/src/lib/elementary/efl_ui_win.c index 9c2d16f..0e4e023 100644 --- a/src/lib/elementary/efl_ui_win.c +++ b/src/lib/elementary/efl_ui_win.c @@ -2162,30 +2162,6 @@ _efl_ui_win_efl_canvas_image_max_size_get(Eo *obj EINA_UNUSED, Efl_Ui_Win_Data * } EOLIAN static void -_efl_ui_win_efl_canvas_image_cache_set(Eo *obj EINA_UNUSED, Efl_Ui_Win_Data *sd, int size) -{ - evas_image_cache_set(sd->evas, size); -} - -EOLIAN static int -_efl_ui_win_efl_canvas_image_cache_get(Eo *obj EINA_UNUSED, Efl_Ui_Win_Data *sd) -{ - return evas_image_cache_get(sd->evas); -} - -EOLIAN static void -_efl_ui_win_efl_canvas_font_cache_set(Eo *obj EINA_UNUSED, Efl_Ui_Win_Data *sd, int size) -{ - evas_font_cache_set(sd->evas, size); -} - -EOLIAN static int -_efl_ui_win_efl_canvas_font_cache_get(Eo *obj EINA_UNUSED, Efl_Ui_Win_Data *sd) -{ - return evas_font_cache_get(sd->evas); -} - -EOLIAN static void _efl_ui_win_efl_canvas_smart_objects_calculate(Eo *obj EINA_UNUSED, Efl_Ui_Win_Data *sd) { evas_smart_objects_calculate(sd->evas); diff --git a/src/lib/elementary/efl_ui_win.eo b/src/lib/elementary/efl_ui_win.eo index 16797de..8617f75 100644 --- a/src/lib/elementary/efl_ui_win.eo +++ b/src/lib/elementary/efl_ui_win.eo @@ -853,10 +853,6 @@ class Efl.Ui.Win (Elm.Widget, Efl.Canvas, Elm.Interface.Atspi.Window, Efl.Canvas.pointer_canvas_xy.get; Efl.Canvas.pointer_inside.get; Efl.Canvas.image_max_size.get; - Efl.Canvas.image_cache.get; - Efl.Canvas.image_cache.set; - Efl.Canvas.font_cache.get; - Efl.Canvas.font_cache.set; Efl.Canvas.smart_objects_calculate; Efl.Canvas.objects_at_xy_get; Efl.Canvas.object_top_at_xy_get; -- 2.7.4