forked from enlightenment/efl
eolian: no need to fill func in eolian_implement_function_get
All implements are now filled in the previous stage.
This commit is contained in:
parent
0b2c070b06
commit
bd21080c82
|
@ -26,8 +26,9 @@ eolian_implement_function_get(const Eolian_Implement *impl,
|
|||
{
|
||||
EINA_SAFETY_ON_NULL_RETURN_VAL(impl, NULL);
|
||||
|
||||
if (impl->foo_id)
|
||||
{
|
||||
if (!impl->foo_id)
|
||||
return NULL; /* normally unreachable */
|
||||
|
||||
if (!func_type)
|
||||
return impl->foo_id;
|
||||
|
||||
|
@ -43,38 +44,6 @@ eolian_implement_function_get(const Eolian_Implement *impl,
|
|||
return impl->foo_id;
|
||||
}
|
||||
|
||||
const Eolian_Class *klass = eolian_implement_class_get(impl);
|
||||
if (!klass)
|
||||
return NULL;
|
||||
|
||||
const char *func_name = impl->full_name + strlen(klass->full_name) + 1;
|
||||
|
||||
Eolian_Function_Type tp = EOLIAN_UNRESOLVED;
|
||||
|
||||
if (impl->is_prop_get && impl->is_prop_set)
|
||||
tp = EOLIAN_PROPERTY;
|
||||
if (impl->is_prop_get)
|
||||
tp = EOLIAN_PROP_GET;
|
||||
else if (impl->is_prop_set)
|
||||
tp = EOLIAN_PROP_SET;
|
||||
|
||||
const Eolian_Function *fid = eolian_class_function_get_by_name(klass,
|
||||
func_name,
|
||||
tp);
|
||||
|
||||
if (func_type)
|
||||
{
|
||||
if (tp == EOLIAN_UNRESOLVED)
|
||||
*func_type = eolian_function_type_get(fid);
|
||||
else
|
||||
*func_type = tp;
|
||||
}
|
||||
|
||||
((Eolian_Implement*)impl)->foo_id = fid;
|
||||
|
||||
return fid;
|
||||
}
|
||||
|
||||
EAPI Eina_Bool
|
||||
eolian_implement_is_auto(const Eolian_Implement *impl)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue