From cfeacd586ba7d80e4a2e066b551eab597739308f Mon Sep 17 00:00:00 2001 From: caro Date: Sat, 26 Jun 2010 19:41:41 +0000 Subject: [PATCH] remove useless log domain git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@49882 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/edje_module.c | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) diff --git a/src/lib/edje_module.c b/src/lib/edje_module.c index 1828e7c..9e53cb9 100644 --- a/src/lib/edje_module.c +++ b/src/lib/edje_module.c @@ -32,13 +32,11 @@ void *alloca (size_t); #include #include "Edje.h" - -#define LOG_COLOR "\033[36m" +#include "edje_private.h" Eina_Hash *_registered_modules = NULL; Eina_Array *_available_modules = NULL; Eina_List *_modules_name = NULL; -static int _edje_modules_log_dom = -1; const char * _edje_module_name_get(Eina_Module *m) @@ -67,13 +65,13 @@ edje_module_load(const char *module) if (!m) { - EINA_LOG_ERR("Could not find the module %s", module); + ERR("Could not find the module %s", module); return EINA_FALSE; } if (!eina_module_load(m)) { - EINA_LOG_ERR("Could not load the module %s", module); + ERR("Could not load the module %s", module); return EINA_TRUE; } @@ -87,14 +85,6 @@ _edje_module_init(void) Eina_Array_Iterator it; Eina_Module *m; - _edje_modules_log_dom = eina_log_domain_register("edje_module", LOG_COLOR); - - if (_edje_modules_log_dom < 0) - { - EINA_LOG_ERR("Could not register log domain: edje_module"); - return; - } - _registered_modules = eina_hash_string_small_new(NULL); _available_modules = eina_module_list_get(_available_modules, PACKAGE_LIB_DIR "/edje", 0, NULL, NULL); @@ -142,9 +132,6 @@ _edje_module_shutdown(void) } _modules_name = NULL; } - - eina_log_domain_unregister(_edje_modules_log_dom); - _edje_modules_log_dom = -1; } EAPI const Eina_List * -- 2.7.4