From 15b6dfec7f41d3f51ca3f083742340b081b1b74a Mon Sep 17 00:00:00 2001 From: Arnaud Giersch Date: Tue, 3 Apr 2018 18:38:21 +0200 Subject: [PATCH] Kill useless typedef s_xbt_dict_cursor_t. --- src/xbt/dict_cursor.c | 2 +- src/xbt/dict_private.h | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/xbt/dict_cursor.c b/src/xbt/dict_cursor.c index 6c8d2a5275..9959a34c03 100644 --- a/src/xbt/dict_cursor.c +++ b/src/xbt/dict_cursor.c @@ -24,7 +24,7 @@ XBT_LOG_NEW_DEFAULT_SUBCATEGORY(xbt_dict_cursor, xbt_dict, "To traverse dictiona */ inline xbt_dict_cursor_t xbt_dict_cursor_new(const xbt_dict_t dict) { - xbt_dict_cursor_t res = xbt_new(s_xbt_dict_cursor_t, 1); + xbt_dict_cursor_t res = xbt_new(struct s_xbt_dict_cursor, 1); res->dict = dict; xbt_dict_cursor_rewind(res); diff --git a/src/xbt/dict_private.h b/src/xbt/dict_private.h index 4d80294131..50ee25e5d7 100644 --- a/src/xbt/dict_private.h +++ b/src/xbt/dict_private.h @@ -29,8 +29,6 @@ typedef struct s_xbt_dict { int fill; } s_xbt_dict_t; -typedef struct s_xbt_dict_cursor s_xbt_dict_cursor_t; - extern XBT_PRIVATE xbt_mallocator_t dict_elm_mallocator; XBT_PRIVATE void * dict_elm_mallocator_new_f(void); #define dict_elm_mallocator_free_f xbt_free_f -- 2.20.1