From b37a9685ad6714b6482cc276c06a2bf7cb0688bd Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 12 Jul 2019 04:05:05 +0200 Subject: m_config: remove an unused function This was one of those "shouldn't exist" type of functions that could access internals that were supposed to be isolated away, but some code needed to access it anyway. It looks like the last use of it went away in 2016, shortly after it was introduced. --- options/m_config.c | 5 ----- options/m_config.h | 2 -- 2 files changed, 7 deletions(-) diff --git a/options/m_config.c b/options/m_config.c index e66b487df2..92bb47d789 100644 --- a/options/m_config.c +++ b/options/m_config.c @@ -1491,8 +1491,3 @@ void mp_read_option_raw(struct mpv_global *global, const char *name, memset(dst, 0, co->opt->type->size); m_option_copy(co->opt, dst, gdata->udata + co->opt->offset); } - -struct m_config *mp_get_root_config(struct mpv_global *global) -{ - return global->config->root; -} diff --git a/options/m_config.h b/options/m_config.h index 40cd367613..ac6966bb22 100644 --- a/options/m_config.h +++ b/options/m_config.h @@ -329,6 +329,4 @@ void *mp_get_config_group(void *ta_parent, struct mpv_global *global, void mp_read_option_raw(struct mpv_global *global, const char *name, const struct m_option_type *type, void *dst); -struct m_config *mp_get_root_config(struct mpv_global *global); - #endif /* MPLAYER_M_CONFIG_H */ -- cgit v1.2.3