[vlc-devel] commit: Remove some useful stuff / misleading comments ( Rémi Denis-Courmont )

git version control git at videolan.org
Mon Sep 22 22:49:50 CEST 2008


vlc | branch: master | Rémi Denis-Courmont <rdenis at simphalempin.com> | Mon Sep 22 22:09:38 2008 +0300| [0f6a7eb81bdf40ebd0546124e07f872548399e48] | committer: Rémi Denis-Courmont 

Remove some useful stuff / misleading comments

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

 src/modules/modules.c |   12 ------------
 1 files changed, 0 insertions(+), 12 deletions(-)

diff --git a/src/modules/modules.c b/src/modules/modules.c
index e9ea5f7..04060f7 100644
--- a/src/modules/modules.c
+++ b/src/modules/modules.c
@@ -486,28 +486,16 @@ module_t * __module_need( vlc_object_t *p_this, const char *psz_capability,
 
         /* Test that this module can do what we need */
         if( !module_provides( p_module, psz_capability ) )
-        {
-            /* Don't recurse through the sub-modules because vlc_list_find()
-             * will list them anyway. */
             continue;
-        }
-
         /* Test if we have the required CPU */
         if( (p_module->i_cpu & i_cpu) != p_module->i_cpu )
-        {
             continue;
-        }
 
         /* If we required a shortcut, check this plugin provides it. */
         if( i_shortcuts > 0 )
         {
-            bool b_trash;
             const char *psz_name = psz_shortcuts;
 
-            /* Let's drop modules with a <= 0 score (unless they are
-             * explicitly requested) */
-            b_trash = p_module->i_score <= 0;
-
             for( unsigned i_short = i_shortcuts; i_short > 0; i_short-- )
             {
                 for( unsigned i = 0; p_module->pp_shortcuts[i]; i++ )




More information about the vlc-devel mailing list