remove dead code
authorBrian <brian@nostromo.localnet.net>
Tue, 13 Feb 2007 16:23:00 +0000 (09:23 -0700)
committerBrian <brian@nostromo.localnet.net>
Tue, 13 Feb 2007 16:23:00 +0000 (09:23 -0700)
src/mesa/shader/slang/slang_typeinfo.c

index eef2cb9..154a1ee 100644 (file)
@@ -690,7 +690,7 @@ _slang_locate_function(const slang_function_scope * funcs, slang_atom a_name,
             return NULL;
          }
          if (!slang_type_specifier_equal(&ti.spec,
-             &f->parameters->variables[j/* + haveRetValue*/]->type.specifier)) {
+             &f->parameters->variables[j]->type.specifier)) {
             slang_typeinfo_destruct(&ti);
             break;
          }
@@ -698,8 +698,8 @@ _slang_locate_function(const slang_function_scope * funcs, slang_atom a_name,
 
          /* "out" and "inout" formal parameter requires the actual parameter to be l-value */
          if (!ti.can_be_referenced &&
-             (f->parameters->variables[j/* + haveRetValue*/]->type.qualifier == slang_qual_out ||
-              f->parameters->variables[j/* + haveRetValue*/]->type.qualifier == slang_qual_inout))
+             (f->parameters->variables[j]->type.qualifier == slang_qual_out ||
+              f->parameters->variables[j]->type.qualifier == slang_qual_inout))
             break;
       }
       if (j == num_args)