summaryrefslogtreecommitdiff
path: root/src/lib/eina
diff options
context:
space:
mode:
authorCedric BAIL <cedric.bail@free.fr>2019-01-04 17:38:40 -0800
committerCedric BAIL <cedric.bail@free.fr>2019-01-16 14:33:22 -0800
commit1bbe4ceb5c5744417a4d8d6d032951e05e7b5319 (patch)
tree38416de4a39d3f68475b63a84b2c3679b804bd79 /src/lib/eina
parentb3d04f72008f26a3d847239db5e017a990502244 (diff)
eina: remove eina_promise_data_set.
eina_promise_data_set is a misleading API and result in conflicted use by multiple independent piece of code leading to bug and crash. It is also not necessary and we can avoid using it completely. Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Differential Revision: https://phab.enlightenment.org/D7575
Diffstat (limited to 'src/lib/eina')
-rw-r--r--src/lib/eina/eina_promise.c9
-rw-r--r--src/lib/eina/eina_promise.h9
2 files changed, 0 insertions, 18 deletions
diff --git a/src/lib/eina/eina_promise.c b/src/lib/eina/eina_promise.c
index 222f7d5613..e9d4461e55 100644
--- a/src/lib/eina/eina_promise.c
+++ b/src/lib/eina/eina_promise.c
@@ -1103,15 +1103,6 @@ eina_promise_data_get(const Eina_Promise *p)
1103 return (void *)p->data; 1103 return (void *)p->data;
1104} 1104}
1105 1105
1106EAPI void
1107eina_promise_data_set(Eina_Promise *p,
1108 void *data)
1109{
1110 EINA_SAFETY_ON_NULL_RETURN(p);
1111 p->data = data;
1112}
1113
1114
1115static Eina_Value 1106static Eina_Value
1116_eina_future_cb_easy(void *data, const Eina_Value value, 1107_eina_future_cb_easy(void *data, const Eina_Value value,
1117 const Eina_Future *dead_future) 1108 const Eina_Future *dead_future)
diff --git a/src/lib/eina/eina_promise.h b/src/lib/eina/eina_promise.h
index 14e550d866..9a148e45eb 100644
--- a/src/lib/eina/eina_promise.h
+++ b/src/lib/eina/eina_promise.h
@@ -620,15 +620,6 @@ EAPI Eina_Promise *eina_promise_continue_new(const Eina_Future *dead_future, Ein
620EAPI void *eina_promise_data_get(const Eina_Promise *p) EINA_ARG_NONNULL(1); 620EAPI void *eina_promise_data_get(const Eina_Promise *p) EINA_ARG_NONNULL(1);
621 621
622/** 622/**
623 * Sets the data attached to the promise.
624 *
625 * Set the data passed to eina_promise_new().
626 * @see eina_promise_new()
627 * @see eina_promise_data_get()
628 */
629EAPI void eina_promise_data_set(Eina_Promise *p, void *data) EINA_ARG_NONNULL(1);
630
631/**
632 * Resolves a promise. 623 * Resolves a promise.
633 * 624 *
634 * This function schedules a resolve event in a 625 * This function schedules a resolve event in a