mirror of https://github.com/mpv-player/mpv
m_config: remove another unused leftover
This commit is contained in:
parent
5ca654301b
commit
ebc04333d2
|
@ -1272,15 +1272,3 @@ struct m_config *mp_get_root_config(struct mpv_global *global)
|
||||||
{
|
{
|
||||||
return global->config->root;
|
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;
|
|
||||||
}
|
|
||||||
|
|
|
@ -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.
|
// mpv_global. Expected to be called at early init on the main m_config.
|
||||||
void m_config_create_shadow(struct m_config *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_config *m_config_from_obj_desc(void *talloc_ctx, struct mp_log *log,
|
||||||
struct m_obj_desc *desc);
|
struct m_obj_desc *desc);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue