summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--options/m_config.c2
-rw-r--r--options/m_option.h4
2 files changed, 0 insertions, 6 deletions
diff --git a/options/m_config.c b/options/m_config.c
index 00557c5673..385a02ba81 100644
--- a/options/m_config.c
+++ b/options/m_config.c
@@ -508,8 +508,6 @@ static struct m_config *m_config_from_obj_desc(void *talloc_ctx,
struct m_config *c = m_config_new(talloc_ctx, log, root);
talloc_steal(c, root);
c->global = global;
- if (desc->set_defaults && c->global)
- desc->set_defaults(c->global, c->optstruct);
return c;
}
diff --git a/options/m_option.h b/options/m_option.h
index 7d7f9ba5da..a78def276b 100644
--- a/options/m_option.h
+++ b/options/m_option.h
@@ -128,10 +128,6 @@ struct m_obj_desc {
bool hidden;
// Callback to print custom help if "vf=entry=help" is passed
void (*print_help)(struct mp_log *log);
- // Callback that allows you to override the static default values. The
- // pointer p points to the struct described by options/priv_size, with
- // priv_defaults already applied. You can write to it to set any defaults.
- void (*set_defaults)(struct mpv_global *global, void *p);
// Set by m_obj_list_find(). If the requested name is an old alias, this
// is set to the old name (while the name field uses the new name).
const char *replaced_name;