From 821320252e535e3762b2b63e4375b931d6b67ffa Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 31 Oct 2019 17:42:41 +0100 Subject: m_option: remove an unused function I think the last real use of this went away in 2014 or so. --- options/m_option.c | 9 --------- options/m_option.h | 3 --- 2 files changed, 12 deletions(-) diff --git a/options/m_option.c b/options/m_option.c index d69d19fa08..892016c935 100644 --- a/options/m_option.c +++ b/options/m_option.c @@ -85,15 +85,6 @@ int m_option_required_params(const m_option_t *opt) return 1; } -const m_option_t *m_option_list_find(const m_option_t *list, const char *name) -{ - for (int i = 0; list[i].name; i++) { - if (strcmp(list[i].name, name) == 0) - return &list[i]; - } - return NULL; -} - int m_option_set_node_or_string(struct mp_log *log, const m_option_t *opt, const char *name, void *dst, struct mpv_node *src) { diff --git a/options/m_option.h b/options/m_option.h index 390919141e..cd785a5cab 100644 --- a/options/m_option.h +++ b/options/m_option.h @@ -482,9 +482,6 @@ char *format_file_size(int64_t size); char *m_option_strerror(int code); -// Find the option matching the given name in the list. -const m_option_t *m_option_list_find(const m_option_t *list, const char *name); - // Helper to parse options, see \ref m_option_type::parse. static inline int m_option_parse(struct mp_log *log, const m_option_t *opt, struct bstr name, struct bstr param, void *dst) -- cgit v1.2.3