options: remove CONF_TYPE_PRINT_INDIRECT

This was unused.
This commit is contained in:
wm4 2012-08-05 16:50:49 +02:00
parent 87ed789162
commit 039a6194a4
2 changed files with 1 additions and 10 deletions

View File

@ -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,

View File

@ -49,7 +49,6 @@ extern const m_option_type_t m_option_type_time_size;
extern const m_option_type_t m_option_type_choice;
extern const m_option_type_t m_option_type_print;
extern const m_option_type_t m_option_type_print_indirect;
extern const m_option_type_t m_option_type_print_func;
extern const m_option_type_t m_option_type_subconfig;
extern const m_option_type_t m_option_type_imgfmt;
@ -157,7 +156,6 @@ struct m_opt_choice_alternatives {
#define CONF_TYPE_DOUBLE (&m_option_type_double)
#define CONF_TYPE_STRING (&m_option_type_string)
#define CONF_TYPE_PRINT (&m_option_type_print)
#define CONF_TYPE_PRINT_INDIRECT (&m_option_type_print_indirect)
#define CONF_TYPE_PRINT_FUNC (&m_option_type_print_func)
#define CONF_TYPE_SUBCONFIG (&m_option_type_subconfig)
#define CONF_TYPE_STRING_LIST (&m_option_type_string_list)