diff options
author | wm4 <wm4@nowhere> | 2012-08-05 16:50:49 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2012-08-05 16:50:49 +0200 |
commit | 039a6194a473564f37525e94b689494c00145c5d (patch) | |
tree | 5d3384d25bd8417db2bd6be6c0aff4c274765df1 /m_option.c | |
parent | 87ed789162ecfe49fb62db0227210bd7fbe5f58c (diff) | |
download | mpv-039a6194a473564f37525e94b689494c00145c5d.tar.bz2 mpv-039a6194a473564f37525e94b689494c00145c5d.tar.xz |
options: remove CONF_TYPE_PRINT_INDIRECT
This was unused.
Diffstat (limited to 'm_option.c')
-rw-r--r-- | m_option.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/m_option.c b/m_option.c index 283e24b37b..ddd538d4aa 100644 --- a/m_option.c +++ b/m_option.c @@ -790,9 +790,7 @@ const m_option_type_t m_option_type_string_list = { static int parse_print(const m_option_t *opt, struct bstr name, struct bstr param, bool ambiguous_param, void *dst) { - if (opt->type == CONF_TYPE_PRINT_INDIRECT) - mp_msg(MSGT_CFGPARSER, MSGL_INFO, "%s", *(char **) opt->p); - else if (opt->type == CONF_TYPE_PRINT_FUNC) { + if (opt->type == CONF_TYPE_PRINT_FUNC) { char *name0 = bstrdup0(NULL, name); char *param0 = bstrdup0(NULL, param); int r = ((m_opt_func_full_t) opt->p)(opt, name0, param0); @@ -812,11 +810,6 @@ const m_option_type_t m_option_type_print = { .parse = parse_print, }; -const m_option_type_t m_option_type_print_indirect = { - .name = "Print", - .parse = parse_print, -}; - const m_option_type_t m_option_type_print_func = { .name = "Print", .flags = M_OPT_TYPE_ALLOW_WILDCARD, |