From 0c5a47bc635b87b7e552cd3663278ad595a99c68 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Mon, 30 Sep 2013 21:51:41 +0200 Subject: [PATCH] Remove config_save_keybinds --- general.h | 1 - settings.c | 17 ----------------- 2 files changed, 18 deletions(-) diff --git a/general.h b/general.h index cb287166d6..5c4c1ab14f 100644 --- a/general.h +++ b/general.h @@ -689,7 +689,6 @@ void settings_set(uint64_t settings); bool config_load_file(const char *path); bool config_save_file(const char *path); bool config_read_keybinds(const char *path); -bool config_save_keybinds(const char *path); void rarch_game_reset(void); void rarch_main_clear_state(void); diff --git a/settings.c b/settings.c index cf36236a4a..75a5f3ebab 100644 --- a/settings.c +++ b/settings.c @@ -1113,23 +1113,6 @@ bool config_save_file(const char *path) return ret; } -// FIXME: This is probably obsolete now. -bool config_save_keybinds(const char *path) -{ - config_file_t *conf = config_file_new(path); - if (!conf) - conf = config_file_new(NULL); - if (!conf) - return NULL; - - for (unsigned i = 0; i < MAX_PLAYERS; i++) - save_keybinds_player(conf, i); - - config_file_write(conf, path); - config_file_free(conf); - return true; -} - void settings_set(uint64_t settings) { #ifdef HAVE_OVERLAY