summaryrefslogtreecommitdiffstats
path: root/m_option.c
diff options
context:
space:
mode:
Diffstat (limited to 'm_option.c')
-rw-r--r--m_option.c9
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,