From ebc04333d2fbcf01cad05c9aa43e8f95c810f92b Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 10 Sep 2016 16:01:05 +0200 Subject: m_config: remove another unused leftover --- options/m_config.c | 12 ------------ options/m_config.h | 3 --- 2 files changed, 15 deletions(-) (limited to 'options') 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; -} diff --git a/options/m_config.h b/options/m_config.h index ec9eb21ae2..902f0bd981 100644 --- a/options/m_config.h +++ b/options/m_config.h @@ -113,9 +113,6 @@ struct m_config *m_config_new(void *talloc_ctx, struct mp_log *log, // mpv_global. Expected to be called at early init on the main m_config. void m_config_create_shadow(struct m_config *config); -// (Warning: new object references config->log and others.) -struct m_config *m_config_dup(void *talloc_ctx, struct m_config *config); - struct m_config *m_config_from_obj_desc(void *talloc_ctx, struct mp_log *log, struct m_obj_desc *desc); -- cgit v1.2.3