summaryrefslogtreecommitdiffstats
path: root/m_option.c
diff options
context:
space:
mode:
authorUoti Urpala <uau@glyph.nonexistent.invalid>2011-01-31 05:13:29 +0200
committerUoti Urpala <uau@glyph.nonexistent.invalid>2011-01-31 16:03:11 +0200
commitf923fd720cd978bb123a743ac2d38096b1e45726 (patch)
treeb8b221d89b4d172d8fe79393fae2d2f43c50c405 /m_option.c
parent626d5ed6285309da621a5665ad9eb03c227ce71d (diff)
downloadmpv-f923fd720cd978bb123a743ac2d38096b1e45726.tar.bz2
mpv-f923fd720cd978bb123a743ac2d38096b1e45726.tar.xz
options: remove unused "func_full" option type
vo_zr was the last user of the "func_full" option type. I think it's better if future features are implemented using more straightforward option functionality. Delete the func_full implementation.
Diffstat (limited to 'm_option.c')
-rw-r--r--m_option.c31
1 files changed, 2 insertions, 29 deletions
diff --git a/m_option.c b/m_option.c
index 3cca348b1e..1530cc31db 100644
--- a/m_option.c
+++ b/m_option.c
@@ -805,7 +805,7 @@ const m_option_type_t m_option_type_string_list = {
/////////////////// Func based options
-// A chained list to save the various calls for func_param and func_full
+// A chained list to save the various calls for func_param
typedef struct m_func_save m_func_save_t;
struct m_func_save {
m_func_save_t* next;
@@ -833,7 +833,7 @@ static void free_func_pf(void* src) {
VAL(src) = NULL;
}
-// Parser for func_param and func_full
+// Parser for func_param
static int parse_func_pf(const m_option_t* opt,const char *name, const char *param, void* dst, int src) {
m_func_save_t *s,*p;
@@ -906,33 +906,6 @@ const m_option_type_t m_option_type_func_param = {
free_func_pf
};
-/////////////////// Func_full
-
-static void set_func_full(const m_option_t* opt, void* dst, const void* src) {
- m_func_save_t* s;
-
- if(!src) return;
-
- for(s = VAL(src) ; s ; s = s->next) {
- // Revert if needed
- if(opt->priv) ((m_opt_default_func_t)opt->priv)(opt,s->name);
- ((m_opt_func_full_t) opt->p)(opt,s->name,s->param);
- }
-}
-
-const m_option_type_t m_option_type_func_full = {
- "Func full",
- "",
- sizeof(m_func_save_t*),
- M_OPT_TYPE_ALLOW_WILDCARD|M_OPT_TYPE_INDIRECT,
- parse_func_pf,
- NULL,
- NULL, // Nothing to do on save
- set_func_full,
- copy_func_pf,
- free_func_pf
-};
-
/////////////// Func
#undef VAL