[vlc-devel] commit: VLC_OBJECT_PLAYLIST: remove unused type ( Rémi Denis-Courmont )

git version control git at videolan.org
Sun Dec 21 13:44:50 CET 2008


vlc | branch: master | Rémi Denis-Courmont <rdenis at simphalempin.com> | Sun Dec 21 14:44:39 2008 +0200| [584fb9f5d0a4342a4651f935f2dd96870caa09ad] | committer: Rémi Denis-Courmont 

VLC_OBJECT_PLAYLIST: remove unused type

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

 include/vlc_objects.h |    1 -
 src/misc/objects.c    |    7 -------
 2 files changed, 0 insertions(+), 8 deletions(-)

diff --git a/include/vlc_objects.h b/include/vlc_objects.h
index f1d72ec..d870d0d 100644
--- a/include/vlc_objects.h
+++ b/include/vlc_objects.h
@@ -33,7 +33,6 @@
 
 /* Object types */
 #define VLC_OBJECT_INTF        (-4)
-#define VLC_OBJECT_PLAYLIST    (-5)
 #define VLC_OBJECT_INPUT       (-7)
 #define VLC_OBJECT_DECODER     (-8)
 #define VLC_OBJECT_VOUT        (-9)
diff --git a/src/misc/objects.c b/src/misc/objects.c
index 4e66695..5c53b20 100644
--- a/src/misc/objects.c
+++ b/src/misc/objects.c
@@ -528,15 +528,8 @@ void * __vlc_object_find( vlc_object_t *p_this, int i_type, int i_mode )
 
     /* Otherwise, recursively look for the object */
     if ((i_mode & 0x000f) == FIND_ANYWHERE)
-    {
-#ifndef NDEBUG
-        if (i_type == VLC_OBJECT_PLAYLIST)
-	    msg_Err (p_this, "using vlc_object_find(VLC_OBJECT_PLAYLIST) "
-                     "instead of pl_Hold()");
-#endif
         return vlc_object_find (p_this->p_libvlc, i_type,
                                 (i_mode & ~0x000f)|FIND_CHILD);
-    }
 
     libvlc_lock (p_this->p_libvlc);
     p_found = FindObject( p_this, i_type, i_mode );




More information about the vlc-devel mailing list