]> git.sesse.net Git - vlc/commitdiff
Remove the vlc_list_find/module hack
authorRémi Denis-Courmont <rdenis@simphalempin.com>
Sun, 21 Sep 2008 10:09:51 +0000 (13:09 +0300)
committerRémi Denis-Courmont <rdenis@simphalempin.com>
Sun, 21 Sep 2008 10:30:48 +0000 (13:30 +0300)
src/misc/objects.c

index 52b766e0f3804556f12c4da1bfa70911d63c9879..af215e2be1bc119b89cea9dfa5d1ddc5fd1b6ae8 100644 (file)
@@ -817,12 +817,6 @@ vlc_list_t * __vlc_list_find( vlc_object_t *p_this, int i_type, int i_mode )
     switch( i_mode & 0x000f )
     {
     case FIND_ANYWHERE:
-        /* Modules should probably not be object, and the module should perhaps
-         * not be shared across LibVLC instances. In the mean time, this ugly
-         * hack is brought to you by Courmisch. */
-        if (i_type == VLC_OBJECT_MODULE)
-            return vlc_list_find ((vlc_object_t *)p_module_bank,
-                                  i_type, FIND_CHILD);
         return vlc_list_find (p_this->p_libvlc, i_type, FIND_CHILD);
 
     case FIND_CHILD: