[vlc-devel] commit: Remove vlc_list_find ( Rémi Denis-Courmont )

git version control git at videolan.org
Sat Jan 23 13:26:45 CET 2010


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Jan 23 14:20:08 2010 +0200| [6c1e53fa81571ea246c9f32f6fa4301eecb8fb69] | committer: Rémi Denis-Courmont 

Remove vlc_list_find

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

 src/libvlc.h       |    2 --
 src/misc/objects.c |   46 ----------------------------------------------
 2 files changed, 0 insertions(+), 48 deletions(-)

diff --git a/src/libvlc.h b/src/libvlc.h
index ced230e..bbe4681 100644
--- a/src/libvlc.h
+++ b/src/libvlc.h
@@ -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
  */
diff --git a/src/misc/objects.c b/src/misc/objects.c
index 2b6ed7d..17201ce 100644
--- a/src/misc/objects.c
+++ b/src/misc/objects.c
@@ -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.




More information about the vlc-devel mailing list