[vlc-commits] modules: remove no-op

Rémi Denis-Courmont git at videolan.org
Mon Mar 4 21:05:48 CET 2019


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Mar  4 21:23:58 2019 +0200| [f6b425144ce2f8b96c75092d683ecbe505d8fc02] | committer: Rémi Denis-Courmont

modules: remove no-op

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

 src/libvlc.h          | 6 ------
 src/misc/objects.c    | 8 --------
 src/modules/modules.c | 3 ---
 3 files changed, 17 deletions(-)

diff --git a/src/libvlc.h b/src/libvlc.h
index 00d53efb70..c8fab1ca11 100644
--- a/src/libvlc.h
+++ b/src/libvlc.h
@@ -115,12 +115,6 @@ vlc_custom_create (vlc_object_t *p_this, size_t i_size, const char *psz_type);
 #define vlc_custom_create(o, s, n) \
         vlc_custom_create(VLC_OBJECT(o), s, n)
 
-/**
- * Assign a name to an object for vlc_object_find_name().
- */
-extern int vlc_object_set_name(vlc_object_t *, const char *);
-#define vlc_object_set_name(o, n) vlc_object_set_name(VLC_OBJECT(o), n)
-
 /* Types */
 typedef void (*vlc_destructor_t) (struct vlc_object_t *);
 void vlc_object_set_destructor (vlc_object_t *, vlc_destructor_t);
diff --git a/src/misc/objects.c b/src/misc/objects.c
index d680fd2f0e..855211d47e 100644
--- a/src/misc/objects.c
+++ b/src/misc/objects.c
@@ -304,14 +304,6 @@ vlc_object_t *(vlc_object_parent)(vlc_object_t *obj)
     return vlc_internals(obj)->parent;
 }
 
-#undef vlc_object_set_name
-int vlc_object_set_name(vlc_object_t *obj, const char *name)
-{
-    assert(obj != NULL);
-    (void) name;
-    return VLC_SUCCESS;
-}
-
 /**
  * Destroys a VLC object once it has no more references.
  *
diff --git a/src/modules/modules.c b/src/modules/modules.c
index 886cbf65c9..4b26453855 100644
--- a/src/modules/modules.c
+++ b/src/modules/modules.c
@@ -274,11 +274,8 @@ done:
     module_list_free (mods);
 
     if (module != NULL)
-    {
         msg_Dbg (obj, "using %s module \"%s\"", capability,
                  module_get_object (module));
-        vlc_object_set_name (obj, module_get_object (module));
-    }
     else
         msg_Dbg (obj, "no %s modules matched", capability);
     return module;



More information about the vlc-commits mailing list