From 78bc58813e47bf48c4e19214389bd1fb660ed8e0 Mon Sep 17 00:00:00 2001 From: Daniel Kolesa Date: Thu, 10 Jul 2014 15:36:18 +0100 Subject: [PATCH] eolian: remove unused enum and field --- src/lib/eolian/eo_definitions.h | 7 ------- src/lib/eolian/eo_parser.c | 2 -- 2 files changed, 9 deletions(-) diff --git a/src/lib/eolian/eo_definitions.h b/src/lib/eolian/eo_definitions.h index 7f96d3b..ec1878c 100644 --- a/src/lib/eolian/eo_definitions.h +++ b/src/lib/eolian/eo_definitions.h @@ -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; diff --git a/src/lib/eolian/eo_parser.c b/src/lib/eolian/eo_parser.c index 6a8a01c..fb64b92 100644 --- a/src/lib/eolian/eo_parser.c +++ b/src/lib/eolian/eo_parser.c @@ -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; -- 2.7.4