Remove unused variables

This commit is contained in:
Twinaphex 2016-07-30 19:31:37 +02:00
parent 7572924abf
commit 685c126589
3 changed files with 6 additions and 5 deletions

View File

@ -1991,7 +1991,6 @@ bool config_load_override(void)
const char *game_name = NULL; const char *game_name = NULL;
bool should_append = false; bool should_append = false;
global_t *global = global_get_ptr(); global_t *global = global_get_ptr();
settings_t *settings = config_get_ptr();
rarch_system_info_t *system = NULL; rarch_system_info_t *system = NULL;
runloop_ctl(RUNLOOP_CTL_SYSTEM_INFO_GET, &system); 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) void config_load(void)
{ {
settings_t *settings = config_get_ptr();
/* Flush out some states that could have been /* Flush out some states that could have been
* set by core environment variables */ * set by core environment variables */
core_unset_input_descriptors(); core_unset_input_descriptors();
@ -3105,7 +3102,6 @@ void config_clear_active_core_path(void)
const char *config_get_active_path(void) const char *config_get_active_path(void)
{ {
settings_t *settings = config_get_ptr();
global_t *global = global_get_ptr(); global_t *global = global_get_ptr();
if (!string_is_empty(global->path.config)) if (!string_is_empty(global->path.config))

View File

@ -311,7 +311,6 @@ bool libretro_get_system_info(const char *path,
static void load_dynamic_core(void) static void load_dynamic_core(void)
{ {
settings_t *settings = config_get_ptr();
function_t sym = dylib_proc(NULL, "retro_init"); function_t sym = dylib_proc(NULL, "retro_init");
if (sym) if (sym)

View File

@ -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))) else if (string_is_equal(label, msg_hash_to_str(MENU_ENUM_LABEL_MUSIC_TAB)))
{ {
#if 0
settings_t *settings = config_get_ptr(); settings_t *settings = config_get_ptr();
#endif
menu_displaylist_reset_filebrowser(); menu_displaylist_reset_filebrowser();
info->type = 42; 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))) else if (string_is_equal(label, msg_hash_to_str(MENU_ENUM_LABEL_VIDEO_TAB)))
{ {
#if 0
settings_t *settings = config_get_ptr(); settings_t *settings = config_get_ptr();
#endif
menu_displaylist_reset_filebrowser(); menu_displaylist_reset_filebrowser();
info->type = 42; 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))) else if (string_is_equal(label, msg_hash_to_str(MENU_ENUM_LABEL_IMAGES_TAB)))
{ {
#if 0
settings_t *settings = config_get_ptr(); settings_t *settings = config_get_ptr();
#endif
menu_displaylist_reset_filebrowser(); menu_displaylist_reset_filebrowser();
info->type = 42; info->type = 42;