summaryrefslogtreecommitdiff
path: root/src/lib/evas/main.c
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2017-07-31 11:53:59 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2017-07-31 11:53:59 +0900
commit6e82f90807e19993a77a007e4ce0a9dbcd082d9b (patch)
tree15911424931c44444722b0f6730c26de20e17466 /src/lib/evas/main.c
parentf4ce0d1b953fdb1a2b9974f0080febe937bb0ba8 (diff)
evas mem - remove redundenty unused evas mem absraction
was never used as was not practical to do so so it effectively does nothing so remove it to reduce analyser warnings found by PVS studio
Diffstat (limited to 'src/lib/evas/main.c')
-rw-r--r--src/lib/evas/main.c30
1 files changed, 0 insertions, 30 deletions
diff --git a/src/lib/evas/main.c b/src/lib/evas/main.c
index 8c31d8edd9..c0f7e91312 100644
--- a/src/lib/evas/main.c
+++ b/src/lib/evas/main.c
@@ -19,36 +19,6 @@ evas_alloc_error(void)
19 return _evas_alloc_error; 19 return _evas_alloc_error;
20} 20}
21 21
22/* free cached items only in ram for speed reasons. return 0 if can't free */
23int
24evas_mem_free(int mem_required EINA_UNUSED)
25{
26 return 0;
27}
28
29/* start reducing quality of images etc. return 0 if can't free anything */
30int
31evas_mem_degrade(int mem_required EINA_UNUSED)
32{
33 return 0;
34}
35
36void *
37evas_mem_calloc(int size)
38{
39 void *ptr;
40
41 ptr = calloc(1, size);
42 if (ptr) return ptr;
43 MERR_BAD();
44 while ((!ptr) && (evas_mem_free(size))) ptr = calloc(1, size);
45 if (ptr) return ptr;
46 while ((!ptr) && (evas_mem_degrade(size))) ptr = calloc(1, size);
47 if (ptr) return ptr;
48 MERR_FATAL();
49 return NULL;
50}
51
52static void 22static void
53_evas_debug_init_from_env(void) 23_evas_debug_init_from_env(void)
54{ 24{