Author: chromatic
Date: Sat Mar 29 13:15:42 2008
New Revision: 26629
Modified:
trunk/src/ops/pmc.ops
Log:
[ops] Removed duplicate code in a couple of new opcodes (Stephane Payrard, RT
#52230).
Modified: trunk/src/ops/pmc.ops
==============================================================================
--- trunk/src/ops/pmc.ops (original)
+++ trunk/src/ops/pmc.ops Sat Mar 29 13:15:42 2008
@@ -92,9 +92,7 @@
if (!PMC_IS_NULL(classobj))
$1 = VTABLE_instantiate(interp, classobj, PMCNULL);
else {
- INTVAL type = pmc_type(interp, classname);
- if (!type)
- type = pmc_type(interp, classname);
+ const INTVAL type = pmc_type(interp, classname);
if (type <= 0)
real_exception(interp, NULL, NO_CLASS,
"Class '%Ss' not found", classname);
@@ -110,9 +108,7 @@
if (!PMC_IS_NULL(classobj))
$1 = VTABLE_instantiate(interp, classobj, $3);
else {
- INTVAL type = pmc_type(interp, classname);
- if (!type)
- type = pmc_type(interp, classname);
+ const INTVAL type = pmc_type(interp, classname);
if (type <= 0)
real_exception(interp, NULL, NO_CLASS,
"Class '%Ss' not found", classname);