]> git.sesse.net Git - vlc/commitdiff
Remove var_SetVoid: this function is doing exactly the same job than
authorRémi Duraffort <ivoire@videolan.org>
Fri, 24 Jul 2009 13:29:40 +0000 (15:29 +0200)
committerRémi Duraffort <ivoire@videolan.org>
Fri, 24 Jul 2009 13:29:40 +0000 (15:29 +0200)
var_TriggerCallback but slowly.

include/vlc_variables.h

index 3def213e1891cd99d544d5368582beb28edab4f8..0efe910d03641ca2f69a3152b2e3bb5c1f24afd5 100644 (file)
@@ -261,19 +261,6 @@ static inline int __var_SetString( vlc_object_t *p_obj, const char *psz_name, co
     return var_SetChecked( p_obj, psz_name, VLC_VAR_STRING, val );
 }
 
-/**
- * Trigger the callbacks on a void variable
- *
- * \param p_obj The object that holds the variable
- * \param psz_name The name of the variable
- */
-static inline int __var_SetVoid( vlc_object_t *p_obj, const char *psz_name )
-{
-    vlc_value_t val;
-    val.b_bool = true;
-    return var_SetChecked( p_obj, psz_name, VLC_VAR_VOID, val );
-}
-
 /**
  * Set the value of a pointer variable
  *
@@ -309,10 +296,6 @@ int __var_SetAddress( vlc_object_t *p_obj, const char *psz_name, void *ptr )
  * __var_SetString() with automatic casting
  */
 #define var_SetString(a,b,c)    __var_SetString( VLC_OBJECT(a),b,c)
-/**
- * __var_SetVoid() with automatic casting
- */
-#define var_SetVoid(a,b)        __var_SetVoid( VLC_OBJECT(a),b)
 /**
  * __var_SetAddress() with automatic casting
  */