[vlc-commits] variables: remove stray value checks
Rémi Denis-Courmont
git at videolan.org
Sun Oct 23 11:36:48 CEST 2016
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Oct 23 12:34:50 2016 +0300| [08495640639f76e1fbdc12e28bd1b74db67ffe92] | committer: Rémi Denis-Courmont
variables: remove stray value checks
Adding/removing a choice does not affect the variable value.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=08495640639f76e1fbdc12e28bd1b74db67ffe92
---
src/misc/variables.c | 4 ----
1 file changed, 4 deletions(-)
diff --git a/src/misc/variables.c b/src/misc/variables.c
index 6114f97..7229611 100644
--- a/src/misc/variables.c
+++ b/src/misc/variables.c
@@ -512,8 +512,6 @@ int var_Change( vlc_object_t *p_this, const char *psz_name,
( p_val2 && p_val2->psz_string ) ?
strdup( p_val2->psz_string ) : NULL;
- CheckValue( p_var, &p_var->val );
-
TriggerListCallback(p_this, p_var, psz_name, VLC_VAR_ADDCHOICE, p_val);
break;
}
@@ -538,8 +536,6 @@ int var_Change( vlc_object_t *p_this, const char *psz_name,
REMOVE_ELEM( p_var->choices_text.p_values,
p_var->choices_text.i_count, i );
- CheckValue( p_var, &p_var->val );
-
TriggerListCallback(p_this, p_var, psz_name, VLC_VAR_DELCHOICE, p_val);
break;
}
More information about the vlc-commits
mailing list