From b7bedbbc367b0e248880d25139056a690ac996a2 Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 13 Jun 2014 02:17:31 +0200 Subject: options: remove some more stuff The "classic" sub-option stuff is not really needed anymore. The only remaining use can be emulated in a simpler way. But note that this breaks the --screenshot option (instead of the "flat" options like --screenshot-...). This was undocumented and discouraged, so it shouldn't affect anyone. --- options/m_option.c | 7 ------- 1 file changed, 7 deletions(-) (limited to 'options/m_option.c') diff --git a/options/m_option.c b/options/m_option.c index b76fe072f4..04b4783dc1 100644 --- a/options/m_option.c +++ b/options/m_option.c @@ -1616,18 +1616,11 @@ static int parse_subconf(struct mp_log *log, const m_option_t *opt, } const m_option_type_t m_option_type_subconfig = { - // The syntax is -option opt1=foo:flag:opt2=blah .name = "Subconfig", .flags = M_OPT_TYPE_HAS_CHILD, .parse = parse_subconf, }; -const m_option_type_t m_option_type_subconfig_struct = { - .name = "Subconfig", - .flags = M_OPT_TYPE_HAS_CHILD | M_OPT_TYPE_USE_SUBSTRUCT, - .parse = parse_subconf, -}; - #undef VAL #define VAL(x) (*(char **)(x)) -- cgit v1.2.3