[vlc-commits] modules: remove unused module_st{art,op}
Rémi Denis-Courmont
git at videolan.org
Tue Apr 3 17:14:08 CEST 2018
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Apr 2 13:02:32 2018 +0300| [a9fef02742a7e99565ce210dd13e1259cda73755] | committer: Rémi Denis-Courmont
modules: remove unused module_st{art,op}
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a9fef02742a7e99565ce210dd13e1259cda73755
---
include/vlc_modules.h | 5 -----
src/misc/xml.c | 2 +-
src/modules/modules.c | 17 -----------------
3 files changed, 1 insertion(+), 23 deletions(-)
diff --git a/include/vlc_modules.h b/include/vlc_modules.h
index c3cbf1c87d..b509927beb 100644
--- a/include/vlc_modules.h
+++ b/include/vlc_modules.h
@@ -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 * );
diff --git a/src/misc/xml.c b/src/misc/xml.c
index 18122032b1..3f9f678d04 100644
--- a/src/misc/xml.c
+++ b/src/misc/xml.c
@@ -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);
}
diff --git a/src/modules/modules.c b/src/modules/modules.c
index 65b71376b4..6201def20f 100644
--- a/src/modules/modules.c
+++ b/src/modules/modules.c
@@ -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. */
More information about the vlc-commits
mailing list