Skip to content

Commit

Permalink
setting_list - remove unused original_value
Browse files Browse the repository at this point in the history
  • Loading branch information
LibretroAdmin committed Feb 12, 2025
1 parent 8e2e2cd commit 8242091
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 15 deletions.
6 changes: 0 additions & 6 deletions menu/menu_setting.c
Original file line number Diff line number Diff line change
Expand Up @@ -1525,7 +1525,6 @@ static rarch_setting_t setting_float_setting(const char* name,
result.rounding_fraction = rounding;

result.value.target.fraction = target;
result.original_value.fraction = *target;
result.default_value.fraction = default_value;

result.cmd_trigger_idx = CMD_EVENT_NONE;
Expand Down Expand Up @@ -1600,7 +1599,6 @@ static rarch_setting_t setting_uint_setting(const char* name,
result.rounding_fraction = NULL;

result.value.target.unsigned_integer = target;
result.original_value.unsigned_integer = *target;
result.default_value.unsigned_integer = default_value;

result.cmd_trigger_idx = CMD_EVENT_NONE;
Expand Down Expand Up @@ -1677,7 +1675,6 @@ static rarch_setting_t setting_size_setting(const char* name,
result.rounding_fraction = NULL;

result.value.target.sizet = target;
result.original_value.sizet = *target;
result.default_value.sizet = default_value;

result.cmd_trigger_idx = CMD_EVENT_NONE;
Expand Down Expand Up @@ -2069,7 +2066,6 @@ static rarch_setting_t setting_bool_setting(const char* name,
result.rounding_fraction = NULL;

result.value.target.boolean = target;
result.original_value.boolean = *target;
result.default_value.boolean = default_value;

result.cmd_trigger_idx = CMD_EVENT_NONE;
Expand Down Expand Up @@ -2144,7 +2140,6 @@ static rarch_setting_t setting_int_setting(const char* name,
result.rounding_fraction = NULL;

result.value.target.integer = target;
result.original_value.integer = *target;
result.default_value.integer = default_value;

result.cmd_trigger_idx = CMD_EVENT_NONE;
Expand Down Expand Up @@ -24291,7 +24286,6 @@ void menu_setting_free(rarch_setting_t *setting)
(*&list)[pos].get_string_representation = NULL; \
(*&list)[pos].default_value.fraction = 0.0f; \
(*&list)[pos].value.target.fraction = NULL; \
(*&list)[pos].original_value.fraction = 0.0f; \
(*&list)[pos].dir.empty_path = NULL; \
(*&list)[pos].cmd_trigger_idx = CMD_EVENT_NONE; \
}
Expand Down
9 changes: 0 additions & 9 deletions setting_list.h
Original file line number Diff line number Diff line change
Expand Up @@ -169,15 +169,6 @@ struct rarch_setting
bool boolean;
} default_value;

union
{
size_t sizet;
int integer;
unsigned int unsigned_integer;
float fraction;
bool boolean;
} original_value;

uint32_t index_offset;
uint32_t size;
unsigned bind_type;
Expand Down

0 comments on commit 8242091

Please sign in to comment.