summaryrefslogtreecommitdiffstats
path: root/options/m_option.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2018-02-21 12:43:15 +0100
committerKevin Mitchell <kevmitch@gmail.com>2018-02-28 00:55:06 -0800
commite76fda8594a7fa19888260c86d95396c5e799cad (patch)
tree43e766c7543bd24dcf6b253f8b039de0fed85675 /options/m_option.c
parentd6921678b916474bdd0eb20f95ad9a4dcd054afe (diff)
downloadmpv-e76fda8594a7fa19888260c86d95396c5e799cad.tar.bz2
mpv-e76fda8594a7fa19888260c86d95396c5e799cad.tar.xz
m_option: remove unneded compatibility features
Aliases that set old options are not needed anymore. Also extend the total size of the aliases array for one of the following commits.
Diffstat (limited to 'options/m_option.c')
-rw-r--r--options/m_option.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/options/m_option.c b/options/m_option.c
index 4a32582873..e0dc1b9729 100644
--- a/options/m_option.c
+++ b/options/m_option.c
@@ -2623,16 +2623,9 @@ bool m_obj_list_find(struct m_obj_desc *dst, const struct m_obj_list *l,
for (int i = 0; l->aliases[i][0]; i++) {
const char *aname = l->aliases[i][0];
const char *alias = l->aliases[i][1];
- const char *opts = l->aliases[i][2];
if (bstr_equals0(name, aname) && m_obj_list_find(dst, l, bstr0(alias)))
{
- if (opts) {
- dst->init_options = opts;
- } else {
- // Assume it's deprecated in this case.
- // Also, it's used by the VO code only, so whatever.
- dst->replaced_name = aname;
- }
+ dst->replaced_name = aname;
return true;
}
}