diff --git a/configuration.c b/configuration.c index b77935f285..921d3da016 100644 --- a/configuration.c +++ b/configuration.c @@ -1991,7 +1991,6 @@ bool config_load_override(void) const char *game_name = NULL; bool should_append = false; global_t *global = global_get_ptr(); - settings_t *settings = config_get_ptr(); rarch_system_info_t *system = NULL; runloop_ctl(RUNLOOP_CTL_SYSTEM_INFO_GET, &system); @@ -2422,8 +2421,6 @@ static void save_keybinds_user(config_file_t *conf, unsigned user) */ void config_load(void) { - settings_t *settings = config_get_ptr(); - /* Flush out some states that could have been * set by core environment variables */ core_unset_input_descriptors(); @@ -3105,7 +3102,6 @@ void config_clear_active_core_path(void) const char *config_get_active_path(void) { - settings_t *settings = config_get_ptr(); global_t *global = global_get_ptr(); if (!string_is_empty(global->path.config)) diff --git a/dynamic.c b/dynamic.c index 3b108fda7e..b189d886da 100644 --- a/dynamic.c +++ b/dynamic.c @@ -311,7 +311,6 @@ bool libretro_get_system_info(const char *path, static void load_dynamic_core(void) { - settings_t *settings = config_get_ptr(); function_t sym = dylib_proc(NULL, "retro_init"); if (sym) diff --git a/menu/menu_displaylist.c b/menu/menu_displaylist.c index 4122dd06e2..02ba4ce7ab 100644 --- a/menu/menu_displaylist.c +++ b/menu/menu_displaylist.c @@ -3797,7 +3797,9 @@ static bool menu_displaylist_push_internal( } else if (string_is_equal(label, msg_hash_to_str(MENU_ENUM_LABEL_MUSIC_TAB))) { +#if 0 settings_t *settings = config_get_ptr(); +#endif menu_displaylist_reset_filebrowser(); info->type = 42; @@ -3838,7 +3840,9 @@ static bool menu_displaylist_push_internal( } else if (string_is_equal(label, msg_hash_to_str(MENU_ENUM_LABEL_VIDEO_TAB))) { +#if 0 settings_t *settings = config_get_ptr(); +#endif menu_displaylist_reset_filebrowser(); info->type = 42; @@ -3879,7 +3883,9 @@ static bool menu_displaylist_push_internal( } else if (string_is_equal(label, msg_hash_to_str(MENU_ENUM_LABEL_IMAGES_TAB))) { +#if 0 settings_t *settings = config_get_ptr(); +#endif menu_displaylist_reset_filebrowser(); info->type = 42;