From e741cdd0e0a3bfa1314c3073153d6da3564e0a1d Mon Sep 17 00:00:00 2001 From: Cedric BAIL Date: Thu, 22 Nov 2018 17:16:09 -0800 Subject: [PATCH] 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 Reviewed-by: Vitor Sousa da Silva Differential Revision: https://phab.enlightenment.org/D7342 --- src/lib/ecore_con/efl_net_control_access_point-none.c | 2 +- src/lib/ecore_con/efl_net_control_technology-none.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/ecore_con/efl_net_control_access_point-none.c b/src/lib/ecore_con/efl_net_control_access_point-none.c index a32784d..e1f904d 100644 --- a/src/lib/ecore_con/efl_net_control_access_point-none.c +++ b/src/lib/ecore_con/efl_net_control_access_point-none.c @@ -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); } diff --git a/src/lib/ecore_con/efl_net_control_technology-none.c b/src/lib/ecore_con/efl_net_control_technology-none.c index 3ef3d4b..dedf07f 100644 --- a/src/lib/ecore_con/efl_net_control_technology-none.c +++ b/src/lib/ecore_con/efl_net_control_technology-none.c @@ -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); } -- 2.7.4