From b44a28dd1f8bef4b020066a3a444906a75a05a43 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Wed, 3 Jun 2015 11:29:12 +0200 Subject: [PATCH] Turn some functions static --- menu/menu_setting.c | 20 +++++--------------- menu/menu_setting.h | 4 ---- 2 files changed, 5 insertions(+), 19 deletions(-) diff --git a/menu/menu_setting.c b/menu/menu_setting.c index d64d48a35a..f2c5a1a3b7 100644 --- a/menu/menu_setting.c +++ b/menu/menu_setting.c @@ -37,26 +37,13 @@ #endif -void settings_info_list_free(rarch_setting_info_t *list_info) +static void settings_info_list_free(rarch_setting_info_t *list_info) { if (list_info) free(list_info); list_info = NULL; } -rarch_setting_info_t *settings_info_list_new(void) -{ - rarch_setting_info_t *list_info = (rarch_setting_info_t*) - calloc(1, sizeof(*list_info)); - - if (!list_info) - return NULL; - - list_info->size = 32; - - return list_info; -} - bool settings_list_append(rarch_setting_t **list, rarch_setting_info_t *list_info, rarch_setting_t value) { @@ -6690,10 +6677,13 @@ rarch_setting_t *setting_new(unsigned mask) rarch_setting_t terminator = { ST_NONE }; rarch_setting_t* list = NULL; rarch_setting_t* resized_list = NULL; - rarch_setting_info_t *list_info = settings_info_list_new(); + rarch_setting_info_t *list_info = (rarch_setting_info_t*) + calloc(1, sizeof(*list_info)); + if (!list_info) return NULL; + list_info->size = 32; list = settings_list_new(list_info->size); if (!list) goto error; diff --git a/menu/menu_setting.h b/menu/menu_setting.h index 2bf17f4d70..c47b70f457 100644 --- a/menu/menu_setting.h +++ b/menu/menu_setting.h @@ -235,12 +235,8 @@ void settings_list_current_add_cmd( rarch_setting_info_t *list_info, enum event_command values); -void settings_info_list_free(rarch_setting_info_t *list_info); - void settings_list_free(rarch_setting_t *list); -rarch_setting_info_t *settings_info_list_new(void); - rarch_setting_t *settings_list_new(unsigned size); void menu_setting_apply_deferred(void);