summaryrefslogtreecommitdiff
path: root/src/lib/eolian
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@samsung.com>2019-07-03 17:52:04 +0200
committerDaniel Kolesa <d.kolesa@samsung.com>2019-07-08 16:06:42 +0200
commit61f39eef49a93c266b217ec5a49dd12579046c8b (patch)
tree3f624336cd76c9b776960eeb511a315a6bf27073 /src/lib/eolian
parent2bfa55582cb2286dced2b97be6b80d96ae8f5a91 (diff)
eolian: remove API to get freefunc of type
This is not supported anymore. For now, the syntax is kept around because of broken C++ tests, but afterwards it will also be removed.
Diffstat (limited to 'src/lib/eolian')
-rw-r--r--src/lib/eolian/Eolian.h14
-rw-r--r--src/lib/eolian/database_type_api.c7
-rw-r--r--src/lib/eolian/database_validate.c4
3 files changed, 0 insertions, 25 deletions
diff --git a/src/lib/eolian/Eolian.h b/src/lib/eolian/Eolian.h
index 4c9535dc03..0816812c74 100644
--- a/src/lib/eolian/Eolian.h
+++ b/src/lib/eolian/Eolian.h
@@ -2931,20 +2931,6 @@ eolian_type_namespaces_get(const Eolian_Type *tp)
2931} 2931}
2932 2932
2933/* 2933/*
2934 * @brief Get the name of the function used to free this type.
2935 *
2936 * @param[in] tp the type.
2937 * @return the free func name.
2938 *
2939 * For types that translate to C pointers, this is the function used to
2940 * free them. For other types, this is the function to free a pointer to
2941 * those types.
2942 *
2943 * @ingroup Eolian
2944 */
2945EAPI Eina_Stringshare *eolian_type_free_func_get(const Eolian_Type *tp);
2946
2947/*
2948 * @brief Evaluate an Eolian expression. 2934 * @brief Evaluate an Eolian expression.
2949 * 2935 *
2950 * @param[in] expr the expression. 2936 * @param[in] expr the expression.
diff --git a/src/lib/eolian/database_type_api.c b/src/lib/eolian/database_type_api.c
index d4869e2866..527afc5171 100644
--- a/src/lib/eolian/database_type_api.c
+++ b/src/lib/eolian/database_type_api.c
@@ -261,13 +261,6 @@ eolian_typedecl_c_type_get(const Eolian_Typedecl *tp)
261} 261}
262 262
263EAPI Eina_Stringshare * 263EAPI Eina_Stringshare *
264eolian_type_free_func_get(const Eolian_Type *tp)
265{
266 EINA_SAFETY_ON_NULL_RETURN_VAL(tp, NULL);
267 return tp->freefunc;
268}
269
270EAPI Eina_Stringshare *
271eolian_typedecl_free_func_get(const Eolian_Typedecl *tp) 264eolian_typedecl_free_func_get(const Eolian_Typedecl *tp)
272{ 265{
273 EINA_SAFETY_ON_NULL_RETURN_VAL(tp, NULL); 266 EINA_SAFETY_ON_NULL_RETURN_VAL(tp, NULL);
diff --git a/src/lib/eolian/database_validate.c b/src/lib/eolian/database_validate.c
index 7e73347f2d..c6a399b649 100644
--- a/src/lib/eolian/database_validate.c
+++ b/src/lib/eolian/database_validate.c
@@ -165,8 +165,6 @@ _validate_typedecl(Validate_State *vals, Eolian_Typedecl *tp)
165 case EOLIAN_TYPEDECL_ALIAS: 165 case EOLIAN_TYPEDECL_ALIAS:
166 if (!_validate_type(vals, tp->base_type)) 166 if (!_validate_type(vals, tp->base_type))
167 return _reset_stable(vals, was_stable, EINA_FALSE); 167 return _reset_stable(vals, was_stable, EINA_FALSE);
168 if (!tp->freefunc && tp->base_type->freefunc)
169 tp->freefunc = eina_stringshare_ref(tp->base_type->freefunc);
170 if (tp->base_type->ownable) 168 if (tp->base_type->ownable)
171 tp->ownable = EINA_TRUE; 169 tp->ownable = EINA_TRUE;
172 _reset_stable(vals, was_stable, EINA_TRUE); 170 _reset_stable(vals, was_stable, EINA_TRUE);
@@ -311,8 +309,6 @@ _validate_type(Validate_State *vals, Eolian_Type *tp)
311 } 309 }
312 if (!_validate_typedecl(vals, tp->tdecl)) 310 if (!_validate_typedecl(vals, tp->tdecl))
313 return EINA_FALSE; 311 return EINA_FALSE;
314 if (tp->tdecl->freefunc && !tp->freefunc)
315 tp->freefunc = eina_stringshare_ref(tp->tdecl->freefunc);
316 if (tp->tdecl->ownable || tp->freefunc) 312 if (tp->tdecl->ownable || tp->freefunc)
317 tp->ownable = EINA_TRUE; 313 tp->ownable = EINA_TRUE;
318 tp->base.c_name = eina_stringshare_ref(tp->tdecl->base.c_name); 314 tp->base.c_name = eina_stringshare_ref(tp->tdecl->base.c_name);