From: RĂ©mi Denis-Courmont Date: Wed, 20 Jan 2010 18:22:50 +0000 (+0200) Subject: dead code X-Git-Tag: 1.1.0-ff~1079 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=abd557df02046acb2f4d7bbb66c851bc282c2eae;p=vlc dead code --- diff --git a/src/config/configuration.h b/src/config/configuration.h index d0b6e11cde..bd2b123c1e 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 c7351ad77f..97fd1e106b 100644 --- a/src/config/core.c +++ b/src/config/core.c @@ -497,38 +497,6 @@ void config_Free( module_t *p_module ) p_module->p_config = NULL; } -/***************************************************************************** - * 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. *****************************************************************************/