[vlc-devel] commit: Remove var_SetVoid: this function is doing exactly the same job than ( Rémi Duraffort )

git version control git at videolan.org
Fri Jul 24 15:38:38 CEST 2009


vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Fri Jul 24 15:29:40 2009 +0200| [b0feb464716d09cfa698b58fb0ae0d43412a6058] | committer: Rémi Duraffort 

Remove var_SetVoid: this function is doing exactly the same job than
var_TriggerCallback but slowly.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b0feb464716d09cfa698b58fb0ae0d43412a6058
---

 include/vlc_variables.h |   17 -----------------
 1 files changed, 0 insertions(+), 17 deletions(-)

diff --git a/include/vlc_variables.h b/include/vlc_variables.h
index 3def213..0efe910 100644
--- a/include/vlc_variables.h
+++ b/include/vlc_variables.h
@@ -262,19 +262,6 @@ static inline int __var_SetString( vlc_object_t *p_obj, const char *psz_name, co
 }
 
 /**
- * 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
  *
  * \param p_obj The object that holds the variable
@@ -310,10 +297,6 @@ int __var_SetAddress( vlc_object_t *p_obj, const char *psz_name, void *ptr )
  */
 #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
  */
 #define var_SetAddress(o, n, p) __var_SetAddress(VLC_OBJECT(o), n, p)




More information about the vlc-devel mailing list