diff --git a/apps/menus/main_menu.c b/apps/menus/main_menu.c index d756d98591..7c2e87c410 100644 --- a/apps/menus/main_menu.c +++ b/apps/menus/main_menu.c @@ -68,7 +68,6 @@ static int reset_settings(void) switch(gui_syncyesno_run(&message, &yes_message, &no_message)) { case YESNO_YES: - settings_write_config(CONFIGFILE ".bak", SETTINGS_SAVE_CHANGED); settings_reset(); settings_apply(true); settings_save(); diff --git a/apps/settings.c b/apps/settings.c index 237ff1c567..449a38b96f 100644 --- a/apps/settings.c +++ b/apps/settings.c @@ -450,7 +450,7 @@ static bool is_changed(int setting_id) return true; } -bool settings_write_config(char* filename, int options) +static bool settings_write_config(char* filename, int options) { int i; int fd; diff --git a/apps/settings.h b/apps/settings.h index 9f7546c60f..1a2c2ee444 100644 --- a/apps/settings.h +++ b/apps/settings.h @@ -200,7 +200,6 @@ bool settings_load_config(const char* file, bool apply); void status_save( void ); int settings_save(void); - /* defines for the options paramater */ enum { SETTINGS_SAVE_CHANGED = 0, @@ -215,7 +214,6 @@ enum { #endif }; bool settings_save_config(int options); -bool settings_write_config(char* filename, int options); void settings_reset(void); void sound_settings_apply(void);