From fa0ba4c0c9fe6800ea86a2664b6496e85195de2b Mon Sep 17 00:00:00 2001 From: Cedric BAIL Date: Fri, 15 Dec 2017 09:45:48 -0800 Subject: [PATCH] eio: remove uneeded function. --- src/lib/eio/efl_io_manager.c | 57 -------------------------------------------- 1 file changed, 57 deletions(-) diff --git a/src/lib/eio/efl_io_manager.c b/src/lib/eio/efl_io_manager.c index e6066ea..d25f4c7 100644 --- a/src/lib/eio/efl_io_manager.c +++ b/src/lib/eio/efl_io_manager.c @@ -146,19 +146,6 @@ _file_done_cb(void *data, Eio_File *handler) /* Basic listing callbacks */ static void -_cleanup_string_progress(void *data) -{ - Eina_Array *existing = data; - Eina_Stringshare *s; - Eina_Array_Iterator it; - unsigned int i; - - EINA_ARRAY_ITER_NEXT(existing, i, s, it) - eina_stringshare_del(s); - eina_array_free(existing); -} - -static void _cleanup_info_progress(void *data) { Eina_Array *existing = data; @@ -196,50 +183,6 @@ _future_string_cb(void *data EINA_UNUSED, Eio_File *handler, Eina_Array *gather) eina_array_free(gather); } -static void -_file_string_cb(void *data, Eio_File *handler, Eina_Array *gather) -{ - Efl_Promise *p = data; - Eina_Array *existing = efl_key_data_get(p, "_eio.stored"); - void **tmp; - - // If a future is set, but without progress, we should assume - // that we should discard all future progress. [[FIXME]] - if (existing) - { - tmp = realloc(existing->data, sizeof (void*) * (existing->count + gather->count)); - if (!tmp) - { - eina_array_free(gather); - eina_array_free(existing); - efl_key_data_set(p, "_eio.stored", NULL); - handler->error = ENOMEM; - eio_file_cancel(handler); - return ; - } - - existing->data = tmp; - memcpy(existing->data + existing->count, gather->data, gather->count * sizeof (void*)); - existing->count += gather->count; - existing->total = existing->count; - eina_array_free(gather); - } - else - { - existing = gather; - } - - if (!efl_key_data_get(p, "_eio.progress")) - { - efl_key_data_set(p, "_eio.stored", existing); - return ; - } - - efl_promise_progress_set(p, existing); - efl_key_data_set(p, "_eio.stored", NULL); - _cleanup_string_progress(existing); -} - /* Direct listing callbacks */ static void _file_info_cb(void *data, Eio_File *handler, Eina_Array *gather) -- 2.7.4