diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2014-01-10 10:14:45 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2014-01-10 10:14:45 +0100 |
commit | 5e8e882c7092feaaf4a56506dbda611ed7755d28 (patch) | |
tree | a47d7137b90f719773c1efc253cd40f4d85a42bd /src/lib/eina_graph_main.c | |
parent | b9cc34a3cc89992ad211bd6e5d6da61c435f46c7 (diff) | |
download | eina_graph-5e8e882c7092feaaf4a56506dbda611ed7755d28.zip eina_graph-5e8e882c7092feaaf4a56506dbda611ed7755d28.tar.gz |
use eina_array for adjacents list instead of custom implementation
Diffstat (limited to 'src/lib/eina_graph_main.c')
-rw-r--r-- | src/lib/eina_graph_main.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/lib/eina_graph_main.c b/src/lib/eina_graph_main.c index a42ed98..7a05f44 100644 --- a/src/lib/eina_graph_main.c +++ b/src/lib/eina_graph_main.c @@ -91,19 +91,3 @@ eina_graph_shutdown(void) return _eina_graph_init_count; } -Eina_Bool -_eina_graph_adjacents_grow(_Eina_Graph_Adjacents *adjs, unsigned int step) -{ - unsigned int *tmp; - unsigned int total; - - total = adjs->total + step; - tmp = realloc(adjs->data, sizeof (unsigned int) * total); - if (EINA_UNLIKELY(!tmp)) return EINA_FALSE; - - adjs->total = total; - adjs->data = tmp; - - return EINA_TRUE; -} - |