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 ------------ 1 file changed, 12 deletions(-) (limited to 'options/m_config.c') 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; -} -- cgit v1.2.3