]> git.sesse.net Git - vlc/commitdiff
Remove vlc_list_find
authorRémi Denis-Courmont <remi@remlab.net>
Sat, 23 Jan 2010 12:20:08 +0000 (14:20 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Sat, 23 Jan 2010 12:21:57 +0000 (14:21 +0200)
src/libvlc.h
src/misc/objects.c

index ced230e343f1e32d0b1ece4a382119a0bb07fd81..bbe4681bd765a4ed857d73b59d6fc3b8c57503e5 100644 (file)
@@ -50,8 +50,6 @@ void system_End       ( libvlc_int_t * );
  */
 #define vlc_object_signal_unlocked( obj )
 
-vlc_list_t *vlc_list_find( vlc_object_t *, int, int );
-
 /*
  * Threads subsystem
  */
index 2b6ed7debc28b74b3e54aeba8e39c04bbb97d804..17201cec4d09475c104c0688c511f0921b4c1ff3 100644 (file)
@@ -707,52 +707,6 @@ void __vlc_object_detach( vlc_object_t *p_this )
         vlc_object_release (p_parent);
 }
 
-
-/**
- ****************************************************************************
- * find a list typed objects and increment their refcount
- *****************************************************************************
- * This function recursively looks for a given object type. i_mode can be one
- * of FIND_PARENT, FIND_CHILD or FIND_ANYWHERE.
- *****************************************************************************/
-vlc_list_t * vlc_list_find( vlc_object_t *p_this, int i_type, int i_mode )
-{
-    vlc_list_t *p_list;
-    int i_count = 0;
-
-    /* Look for the objects */
-    switch( i_mode )
-    {
-    case FIND_ANYWHERE:
-        return vlc_list_find (VLC_OBJECT(p_this->p_libvlc), i_type, FIND_CHILD);
-
-    case FIND_CHILD:
-        libvlc_lock (p_this->p_libvlc);
-        i_count = CountChildren( p_this, i_type );
-        p_list = NewList( i_count );
-
-        /* Check allocation was successful */
-        if( p_list->i_count != i_count )
-        {
-            libvlc_unlock (p_this->p_libvlc);
-            p_list->i_count = 0;
-            break;
-        }
-
-        p_list->i_count = 0;
-        ListChildren( p_list, p_this, i_type );
-        libvlc_unlock (p_this->p_libvlc);
-        break;
-
-    default:
-        msg_Err( p_this, "unimplemented!" );
-        p_list = NewList( 0 );
-        break;
-    }
-
-    return p_list;
-}
-
 /**
  * Gets the list of children of an objects, and increment their reference
  * count.