summaryrefslogtreecommitdiffstats
path: root/options
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2016-09-10 16:01:05 +0200
committerwm4 <wm4@nowhere>2016-09-10 16:01:05 +0200
commitebc04333d2fbcf01cad05c9aa43e8f95c810f92b (patch)
treeafec04ffd31e63a6bf75c4d3769172b58f086ccf /options
parent5ca654301b5f959219ab92827badfa6d514402de (diff)
downloadmpv-ebc04333d2fbcf01cad05c9aa43e8f95c810f92b.tar.bz2
mpv-ebc04333d2fbcf01cad05c9aa43e8f95c810f92b.tar.xz
m_config: remove another unused leftover
Diffstat (limited to 'options')
-rw-r--r--options/m_config.c12
-rw-r--r--options/m_config.h3
2 files changed, 0 insertions, 15 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;
-}
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);