summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCedric BAIL <cedric@osg.samsung.com>2017-12-15 09:45:48 -0800
committerCedric BAIL <cedric@osg.samsung.com>2017-12-15 09:45:48 -0800
commitfa0ba4c0c9fe6800ea86a2664b6496e85195de2b (patch)
tree9a357b5e319acd78f25d14d71e3cbdd59e7ace2d
parent5937b1a3de09994b5ce62745ff1b7a96cf6c4a42 (diff)
eio: remove uneeded function.
-rw-r--r--src/lib/eio/efl_io_manager.c57
1 files changed, 0 insertions, 57 deletions
diff --git a/src/lib/eio/efl_io_manager.c b/src/lib/eio/efl_io_manager.c
index e6066eaa3b..d25f4c7c77 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)
146 146
147/* Basic listing callbacks */ 147/* Basic listing callbacks */
148static void 148static void
149_cleanup_string_progress(void *data)
150{
151 Eina_Array *existing = data;
152 Eina_Stringshare *s;
153 Eina_Array_Iterator it;
154 unsigned int i;
155
156 EINA_ARRAY_ITER_NEXT(existing, i, s, it)
157 eina_stringshare_del(s);
158 eina_array_free(existing);
159}
160
161static void
162_cleanup_info_progress(void *data) 149_cleanup_info_progress(void *data)
163{ 150{
164 Eina_Array *existing = data; 151 Eina_Array *existing = data;
@@ -196,50 +183,6 @@ _future_string_cb(void *data EINA_UNUSED, Eio_File *handler, Eina_Array *gather)
196 eina_array_free(gather); 183 eina_array_free(gather);
197} 184}
198 185
199static void
200_file_string_cb(void *data, Eio_File *handler, Eina_Array *gather)
201{
202 Efl_Promise *p = data;
203 Eina_Array *existing = efl_key_data_get(p, "_eio.stored");
204 void **tmp;
205
206 // If a future is set, but without progress, we should assume
207 // that we should discard all future progress. [[FIXME]]
208 if (existing)
209 {
210 tmp = realloc(existing->data, sizeof (void*) * (existing->count + gather->count));
211 if (!tmp)
212 {
213 eina_array_free(gather);
214 eina_array_free(existing);
215 efl_key_data_set(p, "_eio.stored", NULL);
216 handler->error = ENOMEM;
217 eio_file_cancel(handler);
218 return ;
219 }
220
221 existing->data = tmp;
222 memcpy(existing->data + existing->count, gather->data, gather->count * sizeof (void*));
223 existing->count += gather->count;
224 existing->total = existing->count;
225 eina_array_free(gather);
226 }
227 else
228 {
229 existing = gather;
230 }
231
232 if (!efl_key_data_get(p, "_eio.progress"))
233 {
234 efl_key_data_set(p, "_eio.stored", existing);
235 return ;
236 }
237
238 efl_promise_progress_set(p, existing);
239 efl_key_data_set(p, "_eio.stored", NULL);
240 _cleanup_string_progress(existing);
241}
242
243/* Direct listing callbacks */ 186/* Direct listing callbacks */
244static void 187static void
245_file_info_cb(void *data, Eio_File *handler, Eina_Array *gather) 188_file_info_cb(void *data, Eio_File *handler, Eina_Array *gather)