summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2018-05-20 13:35:32 +0200
committerJan Ekström <jeebjp@gmail.com>2018-05-31 01:24:51 +0300
commit7d5133b713143c73acd3cd8497ba61e73d5b136f (patch)
tree7310b5db7c830901b1fb90dad4f97e821c5e2422
parentf022bf61a97afc8ebec7865b0463c1fbf8018b1d (diff)
downloadmpv-7d5133b713143c73acd3cd8497ba61e73d5b136f.tar.bz2
mpv-7d5133b713143c73acd3cd8497ba61e73d5b136f.tar.xz
m_config: remove an unused function
-rw-r--r--options/m_config.c11
-rw-r--r--options/m_config.h4
2 files changed, 0 insertions, 15 deletions
diff --git a/options/m_config.c b/options/m_config.c
index 6bbd569fe4..2f63cf5363 100644
--- a/options/m_config.c
+++ b/options/m_config.c
@@ -1423,17 +1423,6 @@ void m_config_cache_set_dispatch_change_cb(struct m_config_cache *cache,
}
}
-bool m_config_is_in_group(struct m_config *config,
- const struct m_sub_options *group,
- struct m_config_option *co)
-{
- for (int n = 0; n < config->num_groups; n++) {
- if (config->groups[n].group == group)
- return is_group_included(config, co->group, n);
- }
- return false;
-}
-
void *mp_get_config_group(void *ta_parent, struct mpv_global *global,
const struct m_sub_options *group)
{
diff --git a/options/m_config.h b/options/m_config.h
index 79f17b9bbe..56a4ae857e 100644
--- a/options/m_config.h
+++ b/options/m_config.h
@@ -203,10 +203,6 @@ void m_config_notify_change_co(struct m_config *config,
// it means it works only on fields in MPContext.opts.
void m_config_notify_change_opt_ptr(struct m_config *config, void *ptr);
-bool m_config_is_in_group(struct m_config *config,
- const struct m_sub_options *group,
- struct m_config_option *co);
-
// Return all (visible) option names as NULL terminated string list.
char **m_config_list_options(void *ta_parent, const struct m_config *config);