diff options
author | wm4 <wm4@nowhere> | 2012-09-21 13:07:22 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2012-10-12 10:10:31 +0200 |
commit | d7207b4cbca3bb2335e87c899d978e56e22dc1a5 (patch) | |
tree | 5ccc06ce8d5f97c9d4e391430fb1874377547ee4 /m_option.h | |
parent | ed8e738e0f7da90597732965fe4e8cd1feb9099a (diff) | |
download | mpv-d7207b4cbca3bb2335e87c899d978e56e22dc1a5.tar.bz2 mpv-d7207b4cbca3bb2335e87c899d978e56e22dc1a5.tar.xz |
commands: don't replicate mapping to option in levels_property_helper
This should be done by mp_property_generic_option() only. Also reindent
levels_property_helper() to make it a little bit more readable.
Remove the m_option_get_ptr() function, which doesn't really make sense
anymore.
Diffstat (limited to 'm_option.h')
-rw-r--r-- | m_option.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/m_option.h b/m_option.h index 166e38e999..4ff62cb071 100644 --- a/m_option.h +++ b/m_option.h @@ -422,12 +422,6 @@ char *m_option_strerror(int code); */ const m_option_t *m_option_list_find(const m_option_t *list, const char *name); -static inline void *m_option_get_ptr(const struct m_option *opt, - void *optstruct) -{ - return opt->new ? (char *) optstruct + opt->offset : opt->p; -} - // Helper to parse options, see \ref m_option_type::parse. static inline int m_option_parse(const m_option_t *opt, struct bstr name, struct bstr param, void *dst) |