diff options
author | wm4 <wm4@nowhere> | 2014-06-13 02:17:31 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-06-13 02:18:26 +0200 |
commit | b7bedbbc367b0e248880d25139056a690ac996a2 (patch) | |
tree | 838eb2b7467089e39d8eea4d3a3995e7a5e7f0c0 /options/m_option.c | |
parent | a64e099efcc835e93ea9dafff9bb01829d632fa6 (diff) | |
download | mpv-b7bedbbc367b0e248880d25139056a690ac996a2.tar.bz2 mpv-b7bedbbc367b0e248880d25139056a690ac996a2.tar.xz |
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.
Diffstat (limited to 'options/m_option.c')
-rw-r--r-- | options/m_option.c | 7 |
1 files changed, 0 insertions, 7 deletions
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)) |