eolian: remove unused enum and field
authorDaniel Kolesa <d.kolesa@samsung.com>
Thu, 10 Jul 2014 14:36:18 +0000 (15:36 +0100)
committerDaniel Kolesa <d.kolesa@samsung.com>
Thu, 10 Jul 2014 14:36:18 +0000 (15:36 +0100)
src/lib/eolian/eo_definitions.h
src/lib/eolian/eo_parser.c

index 7f96d3b..ec1878c 100644 (file)
@@ -72,16 +72,9 @@ typedef struct _Eo_Property_Def
 
 /* METHOD */
 
-typedef enum _Eo_Method_Type {
-     METH_REGULAR,
-     METH_CONSTRUCTOR,
-     METH_TYPE_LAST
-} Eo_Method_Type;
-
 typedef struct _Eo_Method_Def
 {
    Eo_Ret_Def *ret;
-   Eo_Method_Type type;
    Eina_Stringshare *name;
    Eina_Stringshare *comment;
    Eina_List *params;
index 6a8a01c..fb64b92 100644 (file)
@@ -644,13 +644,11 @@ parse_method(Eo_Lexer *ls, Eina_Bool ctor)
      {
         if (ls->t.token != TOK_VALUE)
           eo_lexer_syntax_error(ls, "expected method name");
-        meth->type = METH_CONSTRUCTOR;
         meth->name = eina_stringshare_add(ls->t.value);
         eo_lexer_get(ls);
      }
    else
      {
-        meth->type = METH_REGULAR;
         if (ls->t.kw == KW_protected)
           {
              meth->scope = EOLIAN_SCOPE_PROTECTED;