summaryrefslogtreecommitdiffstats
path: root/options
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2018-05-20 12:32:20 +0200
committerwm4 <wm4@nowhere>2018-05-24 19:56:35 +0200
commita7c853fc64dbb7a75f04219d34d061863098395a (patch)
tree3ca9a10f61b8c82b8d9ada793a827ca31f908a74 /options
parent3ed173643e9d23c992d9c355e8ba2edb001c19f1 (diff)
downloadmpv-a7c853fc64dbb7a75f04219d34d061863098395a.tar.bz2
mpv-a7c853fc64dbb7a75f04219d34d061863098395a.tar.xz
m_option: remove an unused field
Diffstat (limited to 'options')
-rw-r--r--options/m_option.c9
-rw-r--r--options/m_option.h4
2 files changed, 0 insertions, 13 deletions
diff --git a/options/m_option.c b/options/m_option.c
index e0f3dc5c76..1fde03cccd 100644
--- a/options/m_option.c
+++ b/options/m_option.c
@@ -3019,15 +3019,6 @@ static int parse_obj_settings(struct mp_log *log, struct bstr opt, int op,
skip = true;
}
- if (_ret && desc.init_options) {
- struct m_config *config = m_config_from_obj_desc_noalloc(NULL, log, &desc);
- bstr s = bstr0(desc.init_options);
- m_obj_parse_sub_config(log, opt, str, &s, config,
- M_SETOPT_CHECK_ONLY, nopos, NULL, list, &plist);
- assert(s.len == 0);
- talloc_free(config);
- }
-
if (has_param) {
struct m_config *config = NULL;
if (!skip)
diff --git a/options/m_option.h b/options/m_option.h
index 9d9f201871..a3d008a400 100644
--- a/options/m_option.h
+++ b/options/m_option.h
@@ -123,10 +123,6 @@ struct m_obj_desc {
const char *options_prefix;
// For free use by the implementer of m_obj_list.get_desc
const void *p;
- // If not NULL, options which should be set before applying other options.
- // This member is usually set by m_obj_list_find() only, and read by the
- // option parser. It's not used anywhere else.
- const char *init_options;
// Don't list entry with "help"
bool hidden;
// Callback to print custom help if "vf=entry=help" is passed