From 039a6194a473564f37525e94b689494c00145c5d Mon Sep 17 00:00:00 2001 From: wm4 Date: Sun, 5 Aug 2012 16:50:49 +0200 Subject: options: remove CONF_TYPE_PRINT_INDIRECT This was unused. --- m_option.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'm_option.c') 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, -- cgit v1.2.3