summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorCedric Bail <cedric@osg.samsung.com>2016-11-29 12:06:07 -0800
committerCedric Bail <cedric@osg.samsung.com>2016-11-29 12:06:07 -0800
commitb6eb284c68df888eb5b5f738a7a4aed88119efb4 (patch)
tree6e2dbfea6ebccd432eb8368963bf62c7b4d13133 /src/lib
parentb06d2510deab1884ea9c85cb7944102b3fb2078f (diff)
evas: remove useless code.
Since we disable the possibility to shutdown evas module, this code has been useless. Let's remove it.
Diffstat (limited to '')
-rw-r--r--src/lib/evas/file/evas_module.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/lib/evas/file/evas_module.c b/src/lib/evas/file/evas_module.c
index 612507dd81..6752620daf 100644
--- a/src/lib/evas/file/evas_module.c
+++ b/src/lib/evas/file/evas_module.c
@@ -38,7 +38,6 @@ static Eina_Hash *evas_modules[6] = {
38 NULL 38 NULL
39}; 39};
40 40
41static Eina_List *eina_evas_modules = NULL;
42static Eina_List *evas_module_paths = NULL; 41static Eina_List *evas_module_paths = NULL;
43static Eina_Array *evas_engines = NULL; 42static Eina_Array *evas_engines = NULL;
44 43
@@ -527,7 +526,6 @@ evas_module_find_type(Evas_Module_Type type, const char *name)
527 em = eina_hash_find(evas_modules[type], name); 526 em = eina_hash_find(evas_modules[type], name);
528 if (em) 527 if (em)
529 { 528 {
530 eina_evas_modules = eina_list_append(eina_evas_modules, en);
531 return em; 529 return em;
532 } 530 }
533 531
@@ -670,24 +668,12 @@ _cb_mod_close(const Eina_Hash *hash EINA_UNUSED,
670void 668void
671evas_module_shutdown(void) 669evas_module_shutdown(void)
672{ 670{
673 Eina_Module *en;
674 char *path; 671 char *path;
675 int i; 672 int i;
676 673
677 for (i = 0; evas_static_module[i].shutdown; ++i) 674 for (i = 0; evas_static_module[i].shutdown; ++i)
678 evas_static_module[i].shutdown(); 675 evas_static_module[i].shutdown();
679 676
680 EINA_LIST_FREE(eina_evas_modules, en)
681 {
682// yes - looks zstupid. just to keep compilers from complaining with warnings
683 if (!en) continue;
684// NEVER FREE MODULES - they MAY be needed after shutdown - eg indirect func
685// symbols from gl for example to shut down extensions. so yes - you may
686// think this is a leak. technically it is, but it's needed to keep things
687// running, so ignore this one
688// eina_module_free(en);
689 }
690
691 eina_hash_foreach(evas_modules[EVAS_MODULE_TYPE_ENGINE], _cb_mod_close, NULL); 677 eina_hash_foreach(evas_modules[EVAS_MODULE_TYPE_ENGINE], _cb_mod_close, NULL);
692 eina_hash_foreach(evas_modules[EVAS_MODULE_TYPE_IMAGE_LOADER], _cb_mod_close, NULL); 678 eina_hash_foreach(evas_modules[EVAS_MODULE_TYPE_IMAGE_LOADER], _cb_mod_close, NULL);
693 eina_hash_foreach(evas_modules[EVAS_MODULE_TYPE_IMAGE_SAVER], _cb_mod_close, NULL); 679 eina_hash_foreach(evas_modules[EVAS_MODULE_TYPE_IMAGE_SAVER], _cb_mod_close, NULL);