remove useless log domain
authorcaro <caro>
Sat, 26 Jun 2010 19:41:41 +0000 (19:41 +0000)
committercaro <caro@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sat, 26 Jun 2010 19:41:41 +0000 (19:41 +0000)
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@49882 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/edje_module.c

index 1828e7c..9e53cb9 100644 (file)
@@ -32,13 +32,11 @@ void *alloca (size_t);
 #include <Ecore_File.h>
 
 #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 *