forked from enlightenment/efl
Eo: remove the long deprecated eo_data_get.
It has been deprecated for a while, and now it's time to actually stop using it.
This commit is contained in:
parent
70e900db10
commit
b55ec7a34e
|
@ -650,15 +650,6 @@ EAPI const Eo_Class *eo_class_get(const Eo *obj);
|
||||||
|
|
||||||
EAPI Eo * _eo_add_internal_start(const char *file, int line, const Eo_Class *klass_id, Eo *parent, Eina_Bool ref);
|
EAPI Eo * _eo_add_internal_start(const char *file, int line, const Eo_Class *klass_id, Eo *parent, Eina_Bool ref);
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Get a pointer to the data of an object for a specific class.
|
|
||||||
* @param obj the object to work on.
|
|
||||||
* @param klass the klass associated with the data.
|
|
||||||
* @return a pointer to the data.
|
|
||||||
* @deprecated use eo_data_scope_get or eo_data_ref instead.
|
|
||||||
*/
|
|
||||||
EAPI void *eo_data_get(const Eo *obj, const Eo_Class *klass) EINA_DEPRECATED;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Get a pointer to the data of an object for a specific class.
|
* @brief Get a pointer to the data of an object for a specific class.
|
||||||
* The data reference count is not incremented. The pointer must be used only
|
* The data reference count is not incremented. The pointer must be used only
|
||||||
|
|
|
@ -1453,12 +1453,6 @@ _eo_data_xunref_internal(_Eo_Object *obj, void *data, const _Eo_Object *ref_obj)
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
EAPI void *
|
|
||||||
eo_data_get(const Eo *obj_id, const Eo_Class *klass_id)
|
|
||||||
{
|
|
||||||
return eo_data_scope_get(obj_id, klass_id);
|
|
||||||
}
|
|
||||||
|
|
||||||
EAPI void *
|
EAPI void *
|
||||||
eo_data_scope_get(const Eo *obj_id, const Eo_Class *klass_id)
|
eo_data_scope_get(const Eo *obj_id, const Eo_Class *klass_id)
|
||||||
{
|
{
|
||||||
|
|
|
@ -200,7 +200,6 @@ START_TEST(eo_data_fetch)
|
||||||
|
|
||||||
obj = eo_add(klass, NULL);
|
obj = eo_add(klass, NULL);
|
||||||
fail_if(!obj);
|
fail_if(!obj);
|
||||||
fail_if(eo_data_get(obj, klass));
|
|
||||||
fail_if(eo_data_scope_get(obj, klass));
|
fail_if(eo_data_scope_get(obj, klass));
|
||||||
fail_if(!eo_data_scope_get(obj, EO_BASE_CLASS));
|
fail_if(!eo_data_scope_get(obj, EO_BASE_CLASS));
|
||||||
eo_unref(obj);
|
eo_unref(obj);
|
||||||
|
|
Loading…
Reference in New Issue