mirror of
https://github.com/mpv-player/mpv
synced 2025-02-06 07:01:45 +00:00
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:
parent
706e708d2f
commit
821320252e
@ -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)
|
||||
{
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user