m_option: remove an unused function

I think the last real use of this went away in 2014 or so.
This commit is contained in:
wm4 2019-10-31 17:42:41 +01:00
parent 706e708d2f
commit 821320252e
2 changed files with 0 additions and 12 deletions

View File

@ -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)
{

View File

@ -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)