Commit a9fef027 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

modules: remove unused module_st{art,op}

parent 61c3b36a
......@@ -64,11 +64,6 @@ VLC_API void module_unneed( vlc_object_t *, module_t * );
VLC_API bool module_exists(const char *) VLC_USED;
VLC_API module_t * module_find(const char *) VLC_USED;
int module_start(vlc_object_t *, const module_t *);
#define module_start(o, m) module_start(VLC_OBJECT(o),m)
void module_stop(vlc_object_t *, const module_t *);
#define module_stop(o, m) module_stop(VLC_OBJECT(o),m)
VLC_API module_config_t * module_config_get( const module_t *, unsigned * ) VLC_USED;
VLC_API void module_config_free( module_config_t * );
......
......@@ -94,6 +94,6 @@ xml_reader_t *xml_ReaderCreate(vlc_object_t *obj, stream_t *stream)
*/
void xml_ReaderDelete(xml_reader_t *reader)
{
module_stop(reader, reader->p_module);
module_unneed(reader, reader->p_module);
vlc_object_release(reader);
}
......@@ -138,23 +138,6 @@ const char *module_gettext (const module_t *m, const char *str)
#endif
}
#undef module_start
int module_start (vlc_object_t *obj, const module_t *m)
{
int (*activate) (vlc_object_t *) = m->pf_activate;
return (activate != NULL) ? activate (obj) : VLC_SUCCESS;
}
#undef module_stop
void module_stop (vlc_object_t *obj, const module_t *m)
{
void (*deactivate) (vlc_object_t *) = m->pf_deactivate;
if (deactivate != NULL)
deactivate (obj);
}
static bool module_match_name(const module_t *m, const char *name, size_t len)
{
/* Plugins with zero score must be matched explicitly. */
......
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