ecore_con: simplify code by using helper that create future directly.

The new helper help replace call to eina_future_resolved and eina_future_rejected with
a scheduler lookup to just one function call.

Reviewed-by: Xavi Artigas <xavierartigas@yahoo.es>
Reviewed-by: Vitor Sousa da Silva <vitorsousa@expertisesolutions.com.br>
Differential Revision: https://phab.enlightenment.org/D7342
This commit is contained in:
Cedric BAIL 2018-11-22 17:16:09 -08:00
parent 2becd0feb3
commit d652231fcd
2 changed files with 2 additions and 2 deletions

View File

@ -192,7 +192,7 @@ _efl_net_control_access_point_configuration_proxy_get(const Eo *obj EINA_UNUSED,
EOLIAN static Eina_Future *
_efl_net_control_access_point_connect(Eo *obj EINA_UNUSED, Efl_Net_Control_Access_Point_Data *pd EINA_UNUSED)
{
return eina_future_rejected(efl_loop_future_scheduler_get(obj),
return efl_loop_future_rejected(obj,
EINA_ERROR_NOT_IMPLEMENTED);
}

View File

@ -59,7 +59,7 @@ _efl_net_control_technology_type_get(const Eo *obj EINA_UNUSED, Efl_Net_Control_
EOLIAN static Eina_Future *
_efl_net_control_technology_scan(Eo *obj, Efl_Net_Control_Technology_Data *pd EINA_UNUSED)
{
return eina_future_rejected(efl_loop_future_scheduler_get(obj),
return efl_loop_future_rejected(obj,
EINA_ERROR_NOT_IMPLEMENTED);
}