forked from enlightenment/efl
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:
parent
b3d04f7200
commit
1bbe4ceb5c
|
@ -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)
|
||||
|
|
|
@ -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.
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue