m_config: remove a redundant condition

Always true, because a few lines above it checks for the same thing.
This commit is contained in:
wm4 2018-05-24 19:54:47 +02:00
parent 982416266c
commit 8527102121
1 changed files with 1 additions and 3 deletions

View File

@ -550,9 +550,7 @@ static void add_sub_group(struct m_config *config, const char *name_prefix,
.group_index = group_index,
.is_hidden = !!opt->deprecation_message,
};
if (opt->type != &m_option_type_subconfig)
MP_TARRAY_APPEND(config, config->opts, config->num_opts, co);
MP_TARRAY_APPEND(config, config->opts, config->num_opts, co);
}
config->groups[group_index].co_end_index = config->num_opts;