[vlc-devel] commit: dead code ( Rémi Denis-Courmont )

git version control git at videolan.org
Wed Jan 20 19:46:16 CET 2010


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed Jan 20 20:22:50 2010 +0200| [abd557df02046acb2f4d7bbb66c851bc282c2eae] | committer: Rémi Denis-Courmont 

dead code

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

 src/config/configuration.h |    3 ---
 src/config/core.c          |   32 --------------------------------
 2 files changed, 0 insertions(+), 35 deletions(-)

diff --git a/src/config/configuration.h b/src/config/configuration.h
index d0b6e11..bd2b123 100644
--- a/src/config/configuration.h
+++ b/src/config/configuration.h
@@ -36,9 +36,6 @@ int  config_AutoSaveConfigFile( vlc_object_t * );
 
 void config_Free( module_t * );
 
-void config_SetCallbacks( module_config_t *, module_config_t *, size_t );
-void config_UnsetCallbacks( module_config_t *, size_t );
-
 #define config_LoadCmdLine(a,b,c,d) __config_LoadCmdLine(VLC_OBJECT(a),b,c,d)
 #define config_LoadConfigFile(a,b) __config_LoadConfigFile(VLC_OBJECT(a),b)
 
diff --git a/src/config/core.c b/src/config/core.c
index c7351ad..97fd1e1 100644
--- a/src/config/core.c
+++ b/src/config/core.c
@@ -498,38 +498,6 @@ void config_Free( module_t *p_module )
 }
 
 /*****************************************************************************
- * config_SetCallbacks: sets callback functions in the duplicate p_config.
- *****************************************************************************
- * Unfortunatly we cannot work directly with the module's config data as
- * this module might be unloaded from memory at any time (remember HideModule).
- * This is why we need to duplicate callbacks each time we reload the module.
- *****************************************************************************/
-void config_SetCallbacks( module_config_t *p_new, module_config_t *p_orig,
-                          size_t n )
-{
-    for (size_t i = 0; i < n; i++)
-    {
-        p_new->pf_callback = p_orig->pf_callback;
-        p_new++;
-        p_orig++;
-    }
-}
-
-/*****************************************************************************
- * config_UnsetCallbacks: unsets callback functions in the duplicate p_config.
- *****************************************************************************
- * We simply undo what we did in config_SetCallbacks.
- *****************************************************************************/
-void config_UnsetCallbacks( module_config_t *p_new, size_t n )
-{
-    for (size_t i = 0; i < n; i++)
-    {
-        p_new->pf_callback = NULL;
-        p_new++;
-    }
-}
-
-/*****************************************************************************
  * config_ResetAll: reset the configuration data for all the modules.
  *****************************************************************************/
 void __config_ResetAll( vlc_object_t *p_this )




More information about the vlc-devel mailing list