bu5hm4n pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=3b0261d5524ab8edb870a6c48549a4afd38757d4
commit 3b0261d5524ab8edb870a6c48549a4afd38757d4 Author: Cedric BAIL <cedric.b...@free.fr> Date: Thu Apr 18 16:16:26 2019 -0700 eio: rely on inheritance and reflection for Efl.IoModel path property. Reviewed-by: Marcel Hollerbach <m...@marcel-hollerbach.de> Differential Revision: https://phab.enlightenment.org/D8653 --- src/lib/eio/efl_io_model.c | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/src/lib/eio/efl_io_model.c b/src/lib/eio/efl_io_model.c index 300dac0e21..f5d46649d0 100644 --- a/src/lib/eio/efl_io_model.c +++ b/src/lib/eio/efl_io_model.c @@ -495,12 +495,6 @@ _property_filename_cb(const Eo *obj, Efl_Io_Model_Data *pd) return eina_value_error_new(EAGAIN); } -static Eina_Value * -_property_path_cb(const Eo *obj EINA_UNUSED, Efl_Io_Model_Data *pd) -{ - return eina_value_stringshare_new(pd->path); -} - static Eina_Value * _property_direct_info_cb(const Eo *obj, Efl_Io_Model_Data *pd) { @@ -620,7 +614,7 @@ static struct { const char *name; Eina_Value *(*cb)(const Eo *obj, Efl_Io_Model_Data *pd); } properties[] = { - PP(filename), PP(path), + PP(filename), PP(direct_info), PP(mtime), PP(atime), PP(ctime), PP(is_dir), PP(is_lnk), PP(size), PP(stat), @@ -649,9 +643,7 @@ _efl_io_model_efl_model_property_get(const Eo *obj, Efl_Io_Model_Data *pd, const !strcmp(property, properties[i].name)) return properties[i].cb(obj, pd); - ERR("Could not find property '%s'.", property); - // Unknow value request - return eina_value_error_new(EFL_MODEL_ERROR_NOT_SUPPORTED); + return efl_model_property_get(efl_super(obj, EFL_IO_MODEL_CLASS), property); } static Eina_Future * --