eolian: remove old ownership system

This commit is contained in:
Daniel Kolesa 2017-09-15 17:52:55 +02:00
parent 60d6aeeb2d
commit 9da5cf20aa
5 changed files with 1 additions and 32 deletions

View File

@ -1835,16 +1835,6 @@ EAPI const Eolian_Class *eolian_type_class_get(const Eolian_Unit *unit, const Eo
*/
EAPI size_t eolian_type_array_size_get(const Eolian_Type *tp);
/*
* @brief Get whether the given type is owned.
*
* @param[in] tp the type.
* @return EINA_TRUE when the type is marked owned, EINA_FALSE otherwise.
*
* @ingroup Eolian
*/
EAPI Eina_Bool eolian_type_is_own(const Eolian_Type *tp);
/*
* @brief Get whether the given type is owned.
*

View File

@ -326,13 +326,6 @@ eolian_type_array_size_get(const Eolian_Type *tp)
return tp->static_size;
}
EAPI Eina_Bool
eolian_type_is_own(const Eolian_Type *tp)
{
EINA_SAFETY_ON_NULL_RETURN_VAL(tp, EINA_FALSE);
return tp->is_own;
}
EAPI Eina_Bool
eolian_type_is_owned(const Eolian_Type *tp)
{

View File

@ -27,7 +27,7 @@ enum Tokens
KW(abstract), KW(constructor), KW(constructors), KW(data), \
KW(destructor), KW(eo), KW(eo_prefix), KW(event_prefix), KW(events), KW(free), \
KW(get), KW(implements), KW(import), KW(interface), KW(keys), KW(legacy), \
KW(legacy_prefix), KW(methods), KW(mixin), KW(own), KW(params), KW(ptr), \
KW(legacy_prefix), KW(methods), KW(mixin), KW(params), KW(ptr), \
KW(set), KW(type), KW(values), KW(var), KWAT(auto), KWAT(beta), \
KWAT(class), KWAT(const), KWAT(empty), KWAT(extern), \
KWAT(free), KWAT(hot), KWAT(in), KWAT(inout), KWAT(nonull), KWAT(nullable), \

View File

@ -720,19 +720,6 @@ parse_type_void(Eo_Lexer *ls, Eina_Bool allow_ref, Eina_Bool allow_sarray)
check_match(ls, ')', '(', pline, pcol);
return def;
}
case KW_own:
{
int pline, pcolumn;
eo_lexer_get(ls);
pline = ls->line_number;
pcolumn = ls->column;
check_next(ls, '(');
def = parse_type_void(ls, allow_ref, EINA_FALSE);
FILL_BASE(def->base, ls, line, col);
def->is_own = EINA_TRUE;
check_match(ls, ')', '(', pline, pcolumn);
return def;
}
case KW_free:
{
int pline, pcolumn;

View File

@ -164,7 +164,6 @@ struct _Eolian_Type
Eina_Stringshare *freefunc;
size_t static_size;
Eina_Bool is_const :1;
Eina_Bool is_own :1;
Eina_Bool is_ptr :1;
Eina_Bool owned :1;
};