From d7207b4cbca3bb2335e87c899d978e56e22dc1a5 Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 21 Sep 2012 13:07:22 +0200 Subject: 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. --- m_option.h | 6 ------ 1 file changed, 6 deletions(-) (limited to 'm_option.h') 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) -- cgit v1.2.3