summaryrefslogtreecommitdiffstats
path: root/options/m_config.c
diff options
context:
space:
mode:
Diffstat (limited to 'options/m_config.c')
-rw-r--r--options/m_config.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/options/m_config.c b/options/m_config.c
index f4d544c798..5cdfc4f67e 100644
--- a/options/m_config.c
+++ b/options/m_config.c
@@ -1272,15 +1272,3 @@ struct m_config *mp_get_root_config(struct mpv_global *global)
{
return global->config->root;
}
-
-struct m_config *m_config_dup(void *talloc_ctx, struct m_config *config)
-{
- struct m_config *new = m_config_new(talloc_ctx, config->log, config->size,
- config->defaults, config->options);
- assert(new->num_opts == config->num_opts);
- for (int n = 0; n < new->num_opts; n++) {
- assert(new->opts[n].opt->type == config->opts[n].opt->type);
- m_option_copy(new->opts[n].opt, new->opts[n].data, config->opts[n].data);
- }
- return new;
-}