summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2019-07-12 04:05:05 +0200
committerwm4 <wm4@nowhere>2019-09-19 20:37:05 +0200
commitb37a9685ad6714b6482cc276c06a2bf7cb0688bd (patch)
tree7a25f09ce41fdac61ac276efa1aea8898ba7f428
parente265c07547a4db87dde0dcdfdb25ef2e33659d38 (diff)
downloadmpv-b37a9685ad6714b6482cc276c06a2bf7cb0688bd.tar.bz2
mpv-b37a9685ad6714b6482cc276c06a2bf7cb0688bd.tar.xz
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.
-rw-r--r--options/m_config.c5
-rw-r--r--options/m_config.h2
2 files changed, 0 insertions, 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 */