diff options
author | wm4 <wm4@nowhere> | 2019-10-31 17:42:41 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2019-10-31 17:42:41 +0100 |
commit | 821320252e535e3762b2b63e4375b931d6b67ffa (patch) | |
tree | 1c14564c6a170df25f9df3cf4afff3be6d5eafe6 | |
parent | 706e708d2f17c68ceb13443fffd25053020da126 (diff) | |
download | mpv-821320252e535e3762b2b63e4375b931d6b67ffa.tar.bz2 mpv-821320252e535e3762b2b63e4375b931d6b67ffa.tar.xz |
m_option: remove an unused function
I think the last real use of this went away in 2014 or so.
-rw-r--r-- | options/m_option.c | 9 | ||||
-rw-r--r-- | options/m_option.h | 3 |
2 files changed, 0 insertions, 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) |