summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTom Hacohen <tom@stosb.com>2016-03-04 14:23:02 +0000
committerTom Hacohen <tom@stosb.com>2016-03-04 14:23:02 +0000
commitb55ec7a34e12e36ca54541ee0b250e802ab0a13f (patch)
treed4b8b19c4d63db379a086ea679e5d5e1def04bb3 /src
parent70e900db10473638ddb1d8e55e58d5fd14497142 (diff)
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.
Diffstat (limited to 'src')
-rw-r--r--src/lib/eo/Eo.h9
-rw-r--r--src/lib/eo/eo.c6
-rw-r--r--src/tests/eo/suite/eo_test_general.c1
3 files changed, 0 insertions, 16 deletions
diff --git a/src/lib/eo/Eo.h b/src/lib/eo/Eo.h
index a0b817c..57d1c12 100644
--- a/src/lib/eo/Eo.h
+++ b/src/lib/eo/Eo.h
@@ -652,15 +652,6 @@ EAPI Eo * _eo_add_internal_start(const char *file, int line, const Eo_Class *kla
652 652
653/** 653/**
654 * @brief Get a pointer to the data of an object for a specific class. 654 * @brief Get a pointer to the data of an object for a specific class.
655 * @param obj the object to work on.
656 * @param klass the klass associated with the data.
657 * @return a pointer to the data.
658 * @deprecated use eo_data_scope_get or eo_data_ref instead.
659 */
660EAPI void *eo_data_get(const Eo *obj, const Eo_Class *klass) EINA_DEPRECATED;
661
662/**
663 * @brief Get a pointer to the data of an object for a specific class.
664 * The data reference count is not incremented. The pointer must be used only 655 * The data reference count is not incremented. The pointer must be used only
665 * in the scope of the function and its callees. 656 * in the scope of the function and its callees.
666 * @param obj the object to work on. 657 * @param obj the object to work on.
diff --git a/src/lib/eo/eo.c b/src/lib/eo/eo.c
index cc0c978..996b961 100644
--- a/src/lib/eo/eo.c
+++ b/src/lib/eo/eo.c
@@ -1454,12 +1454,6 @@ _eo_data_xunref_internal(_Eo_Object *obj, void *data, const _Eo_Object *ref_obj)
1454} 1454}
1455 1455
1456EAPI void * 1456EAPI void *
1457eo_data_get(const Eo *obj_id, const Eo_Class *klass_id)
1458{
1459 return eo_data_scope_get(obj_id, klass_id);
1460}
1461
1462EAPI void *
1463eo_data_scope_get(const Eo *obj_id, const Eo_Class *klass_id) 1457eo_data_scope_get(const Eo *obj_id, const Eo_Class *klass_id)
1464{ 1458{
1465 void *ret; 1459 void *ret;
diff --git a/src/tests/eo/suite/eo_test_general.c b/src/tests/eo/suite/eo_test_general.c
index cfe5767..c01a621 100644
--- a/src/tests/eo/suite/eo_test_general.c
+++ b/src/tests/eo/suite/eo_test_general.c
@@ -200,7 +200,6 @@ START_TEST(eo_data_fetch)
200 200
201 obj = eo_add(klass, NULL); 201 obj = eo_add(klass, NULL);
202 fail_if(!obj); 202 fail_if(!obj);
203 fail_if(eo_data_get(obj, klass));
204 fail_if(eo_data_scope_get(obj, klass)); 203 fail_if(eo_data_scope_get(obj, klass));
205 fail_if(!eo_data_scope_get(obj, EO_BASE_CLASS)); 204 fail_if(!eo_data_scope_get(obj, EO_BASE_CLASS));
206 eo_unref(obj); 205 eo_unref(obj);