q66 pushed a commit to branch master.

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

commit 9da5cf20aade822deed38d09be8e9c73b9705f98
Author: Daniel Kolesa <[email protected]>
Date:   Fri Sep 15 17:52:55 2017 +0200

    eolian: remove old ownership system
---
 src/lib/eolian/Eolian.h            | 10 ----------
 src/lib/eolian/database_type_api.c |  7 -------
 src/lib/eolian/eo_lexer.h          |  2 +-
 src/lib/eolian/eo_parser.c         | 13 -------------
 src/lib/eolian/eolian_database.h   |  1 -
 5 files changed, 1 insertion(+), 32 deletions(-)

diff --git a/src/lib/eolian/Eolian.h b/src/lib/eolian/Eolian.h
index 06299b8129..fdf14b97fa 100644
--- a/src/lib/eolian/Eolian.h
+++ b/src/lib/eolian/Eolian.h
@@ -1838,16 +1838,6 @@ 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.
- *
  * This is true when a parameter, return or whatever is marked as @owned.
  *
  * @param[in] tp the type.
diff --git a/src/lib/eolian/database_type_api.c 
b/src/lib/eolian/database_type_api.c
index 2f6a86fbf4..8d83a8f273 100644
--- a/src/lib/eolian/database_type_api.c
+++ b/src/lib/eolian/database_type_api.c
@@ -327,13 +327,6 @@ eolian_type_array_size_get(const Eolian_Type *tp)
 }
 
 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)
 {
    EINA_SAFETY_ON_NULL_RETURN_VAL(tp, EINA_FALSE);
diff --git a/src/lib/eolian/eo_lexer.h b/src/lib/eolian/eo_lexer.h
index 8d7cb214bd..2e7d0e5f7b 100644
--- a/src/lib/eolian/eo_lexer.h
+++ b/src/lib/eolian/eo_lexer.h
@@ -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), \
diff --git a/src/lib/eolian/eo_parser.c b/src/lib/eolian/eo_parser.c
index 4126323b70..a523d881a0 100644
--- a/src/lib/eolian/eo_parser.c
+++ b/src/lib/eolian/eo_parser.c
@@ -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;
diff --git a/src/lib/eolian/eolian_database.h b/src/lib/eolian/eolian_database.h
index 47367f48f3..d0118d0653 100644
--- a/src/lib/eolian/eolian_database.h
+++ b/src/lib/eolian/eolian_database.h
@@ -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;
 };

-- 


Reply via email to