Commit abd557df authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont
Browse files

dead code

parent 5244f8cc
......@@ -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)
......
......@@ -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.
*****************************************************************************/
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment