q66 pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=a9171a89f9aabcfc18edad450665f548de5d0566

commit a9171a89f9aabcfc18edad450665f548de5d0566
Author: Daniel Kolesa <[email protected]>
Date:   Fri Jul 11 11:33:26 2014 +0100

    eolian: remove parser dump for now (doesn't include all info, when it's 
needed again it can be re-added)
---
 src/lib/eolian/eo_parser.c | 130 ---------------------------------------------
 src/lib/eolian/eo_parser.h |   1 -
 2 files changed, 131 deletions(-)

diff --git a/src/lib/eolian/eo_parser.c b/src/lib/eolian/eo_parser.c
index 472dd92..8bcf1a8 100644
--- a/src/lib/eolian/eo_parser.c
+++ b/src/lib/eolian/eo_parser.c
@@ -1054,136 +1054,6 @@ parse_chunk(Eo_Lexer *ls, Eina_Bool eot)
      parse_unit(ls, eot);
 }
 
-static char *_accessor_type_str[2] = { "setter", "getter"   };
-static char *    _param_way_str[3] = { "IN", "OUT", "INOUT" };
-
-static void
-_dump_class(Eo_Class_Def *kls)
-{
-   const char *s;
-   Eina_List *l, *m;
-
-   Eo_Property_Def *prop;
-   Eo_Method_Def *meth;
-   Eo_Param_Def *param;
-   Eo_Accessor_Def *accessor;
-   Eolian_Event *sgn;
-   Eolian_Implement *impl;
-
-   printf("Class: %s (%s)\n",
-          kls->name, (kls->comment ? kls->comment : "-"));
-   printf("  inherits from :");
-   EINA_LIST_FOREACH(kls->inherits, l, s)
-      printf(" %s", s);
-   printf("\n");
-   printf("  implements:");
-   EINA_LIST_FOREACH(kls->implements, l, impl)
-      printf(" %s", impl->full_name);
-   printf("\n");
-   printf("  events:\n");
-   EINA_LIST_FOREACH(kls->events, l, sgn)
-      printf("    %s <%s> (%s)\n", sgn->name, sgn->type, sgn->comment);
-    EINA_LIST_FOREACH(kls->constructors, l, meth)
-     {
-        printf("  constructors: %s\n", meth->name);
-        if (meth->ret)
-          {
-             printf("    return: ");
-             database_type_print(meth->ret->type);
-             printf(" (%s)\n", meth->ret->comment);
-          }
-        printf("    legacy : %s\n", meth->legacy);
-        EINA_LIST_FOREACH(meth->params, m, param)
-          {
-             printf("    param: %s %s : ", _param_way_str[param->way], 
param->name);
-             database_type_print(param->type);
-             printf(" (%s)\n", param->comment);
-          }
-     }
-
-   EINA_LIST_FOREACH(kls->properties, l, prop)
-     {
-        printf("  property: %s\n", prop->name);
-        EINA_LIST_FOREACH(prop->keys, m, param)
-          {
-             printf("    key: %s : ", param->name);
-             database_type_print(param->type);
-             printf(" (%s)\n", param->comment);
-          }
-        EINA_LIST_FOREACH(prop->values, m, param)
-          {
-             printf("    value: %s : ", param->name);
-             database_type_print(param->type);
-             printf(" (%s)\n", param->comment);
-          }
-        EINA_LIST_FOREACH(prop->accessors, m, accessor)
-          {
-             printf("    accessor: ");
-             if (accessor->ret)
-               database_type_print(accessor->ret->type);
-             printf(" : %s (%s)\n", _accessor_type_str[accessor->type], 
accessor->comment);
-             printf("      legacy : %s\n", accessor->legacy);
-          }
-     }
-
-   EINA_LIST_FOREACH(kls->methods, l, meth)
-     {
-        printf("  method: %s\n", meth->name);
-        if (meth->ret)
-          {
-             printf("    return: ");
-             database_type_print(meth->ret->type);
-             printf(" (%s)\n", meth->ret->comment);
-          }
-        printf("    legacy : %s\n", meth->legacy);
-        printf("    obj_const : %s\n", meth->obj_const?"true":"false");
-        EINA_LIST_FOREACH(meth->params, m, param)
-          {
-             printf("    param: %s %s : ", _param_way_str[param->way], 
param->name);
-             database_type_print(param->type);
-             printf(" (%s)\n", param->comment);
-          }
-     }
-}
-
-static void
-_dump_type(Eolian_Typedef *type)
-{
-   printf("Typedef: %s ", type->alias);
-   database_type_print(type->type);
-   printf("\n");
-}
-
-static void
-_dump_struct(Eolian_Type *type)
-{
-   database_type_print(type);
-}
-
-void
-eo_parser_dump(Eo_Lexer *ls)
-{
-   Eina_List *k;
-   Eo_Node *nd;
-
-   EINA_LIST_FOREACH(ls->nodes, k, nd)
-     {
-        switch (nd->type)
-          {
-           case NODE_CLASS:
-             _dump_class(nd->def_class);
-             break;
-           case NODE_TYPEDEF:
-             _dump_type(nd->def_typedef);
-             break;
-           case NODE_STRUCT:
-             _dump_struct(nd->def_struct);
-           default:
-             break;
-          }
-     }
-}
-
 Eina_Bool
 eo_parser_walk(Eo_Lexer *ls, Eina_Bool eot)
 {
diff --git a/src/lib/eolian/eo_parser.h b/src/lib/eolian/eo_parser.h
index acd339c..62e6270 100644
--- a/src/lib/eolian/eo_parser.h
+++ b/src/lib/eolian/eo_parser.h
@@ -3,7 +3,6 @@
 
 #include "eo_lexer.h"
 
-void      eo_parser_dump         (Eo_Lexer *ls);
 Eina_Bool eo_parser_walk         (Eo_Lexer *ls, Eina_Bool eot);
 Eina_Bool eo_parser_database_fill(const char *filename, Eina_Bool eot);
 

-- 


Reply via email to