summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCedric BAIL <cedric@osg.samsung.com>2018-11-22 17:13:43 -0800
committerCedric BAIL <cedric@osg.samsung.com>2018-11-30 14:58:17 -0800
commit1c238298ee1f191a54cbc2e52e700ef3c9b07292 (patch)
treed80f5d0691029222acb528e0cec3340e1fccb327
parent31eab2cff96d5bca6dc27c4ad720c07ac8dbab4d (diff)
downloadefl-1c238298ee1f191a54cbc2e52e700ef3c9b07292.tar.gz
eio: we do not need to actually loop explicitely for the loop here.
Actually efl_loop_future_scheduler_get does lookup on the object and its provider someone that could be a loop provider and find a scheduler. There is no need to custom look for a loop provider. Reviewed-by: Xavi Artigas <xavierartigas@yahoo.es> Reviewed-by: Vitor Sousa da Silva <vitorsousa@expertisesolutions.com.br> Differential Revision: https://phab.enlightenment.org/D7338
-rw-r--r--src/lib/eio/eio_model.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/lib/eio/eio_model.c b/src/lib/eio/eio_model.c
index b01e961f8d..529582ffba 100644
--- a/src/lib/eio/eio_model.c
+++ b/src/lib/eio/eio_model.c
@@ -660,7 +660,6 @@ _eio_model_efl_model_property_set(Eo *obj,
Eio_Model_Data *pd,
const char *property, Eina_Value *value)
{
- Eo *loop = efl_provider_find(obj, EFL_LOOP_CLASS);
const char *path;
Eina_Future *f;
Eina_Value s = EINA_VALUE_EMPTY;
@@ -683,7 +682,7 @@ _eio_model_efl_model_property_set(Eo *obj,
if (finalized)
{
- Eina_Promise *p = efl_loop_promise_new(loop, _efl_io_manager_future_cancel, NULL);
+ Eina_Promise *p = efl_loop_promise_new(obj, _efl_io_manager_future_cancel, NULL);
f = eina_future_new(p);
pd->request.move = eio_file_move(pd->path, path,
@@ -697,14 +696,14 @@ _eio_model_efl_model_property_set(Eo *obj,
}
else
{
- f = eina_future_resolved(efl_loop_future_scheduler_get(loop),
+ f = eina_future_resolved(efl_loop_future_scheduler_get(obj),
eina_value_string_init(pd->path));
}
return efl_future_then(obj, f);
on_error:
- return eina_future_rejected(efl_loop_future_scheduler_get(loop), err);
+ return eina_future_rejected(efl_loop_future_scheduler_get(obj), err);
}
static void