Get rid of setting_get_bind_type

This commit is contained in:
libretroadmin 2023-06-16 02:03:04 +02:00
parent cd95a0f663
commit 618bedb950
3 changed files with 2 additions and 11 deletions

View File

@ -1446,7 +1446,7 @@ static int menu_input_key_bind_set_mode_common(
menu_displaylist_info_init(&info);
bind_type = setting_get_bind_type(setting);
bind_type = setting->bind_type;
binds->begin = bind_type;
binds->last = bind_type;

View File

@ -554,13 +554,6 @@ static bool SETTINGS_LIST_APPEND_internal(
return true;
}
unsigned setting_get_bind_type(rarch_setting_t *setting)
{
if (!setting)
return 0;
return setting->bind_type;
}
static int setting_bind_action_ok(
rarch_setting_t *setting, size_t idx, bool wraparound)
{
@ -617,7 +610,7 @@ static int setting_bind_action_start(rarch_setting_t *setting)
if (setting->index_offset)
def_binds = (struct retro_keybind*)retro_keybinds_rest;
bind_type = setting_get_bind_type(setting);
bind_type = setting->bind_type;
keybind->key = def_binds[bind_type - MENU_SETTINGS_BIND_BEGIN].key;
keybind->mbutton = NO_BTN;

View File

@ -212,8 +212,6 @@ struct rarch_setting
int setting_set_with_string_representation(
rarch_setting_t* setting, const char *value);
unsigned setting_get_bind_type(rarch_setting_t *setting);
RETRO_END_DECLS
#endif