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
This commit is contained in:
Cedric BAIL 2019-01-04 17:38:40 -08:00
parent b3d04f7200
commit 1bbe4ceb5c
2 changed files with 0 additions and 18 deletions

View File

@ -1103,15 +1103,6 @@ eina_promise_data_get(const Eina_Promise *p)
return (void *)p->data;
}
EAPI void
eina_promise_data_set(Eina_Promise *p,
void *data)
{
EINA_SAFETY_ON_NULL_RETURN(p);
p->data = data;
}
static Eina_Value
_eina_future_cb_easy(void *data, const Eina_Value value,
const Eina_Future *dead_future)

View File

@ -619,15 +619,6 @@ EAPI Eina_Promise *eina_promise_continue_new(const Eina_Future *dead_future, Ein
*/
EAPI void *eina_promise_data_get(const Eina_Promise *p) EINA_ARG_NONNULL(1);
/**
* Sets the data attached to the promise.
*
* Set the data passed to eina_promise_new().
* @see eina_promise_new()
* @see eina_promise_data_get()
*/
EAPI void eina_promise_data_set(Eina_Promise *p, void *data) EINA_ARG_NONNULL(1);
/**
* Resolves a promise.
*