]> git.sesse.net Git - vlc/commitdiff
VLC_OBJECT_PLAYLIST: remove unused type
authorRémi Denis-Courmont <rdenis@simphalempin.com>
Sun, 21 Dec 2008 12:44:39 +0000 (14:44 +0200)
committerRémi Denis-Courmont <rdenis@simphalempin.com>
Sun, 21 Dec 2008 12:44:39 +0000 (14:44 +0200)
include/vlc_objects.h
src/misc/objects.c

index f1d72ec95524070d8cca875e9d875822323b5515..d870d0df011f5eefce006b5989aac340b367d32b 100644 (file)
@@ -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)
index 4e66695f4d6f4c0ec29f565bf3326bbe960599d6..5c53b20c244cceab86fa73ee395399349df65463 100644 (file)
@@ -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 );