@samitouri / QOS-React / commits / 02c0e824e4

[compiler][ez] Remove unused param (#31376)

Sathya Gunasekaran committed Oct 28, 2024 at 15:08 UTC 02c0e824e462c7f81ba79d95cfc41c89c6d81b95
1 file changed +1 -3
compiler/packages/babel-plugin-react-compiler/src/Optimization/ConstantPropagation.ts
+1 -3
@@ -8,7 +8,6 @@
8 import {isValidIdentifier} from '@babel/types';
9 import {CompilerError} from '../CompilerError';
10 import {
11 - Environment,
11 GotoVariant,
12 HIRFunction,
13 IdentifierId,
@@ -130,7 +129,7 @@ function applyConstantPropagation(
129 continue;
130 }
131 const instr = block.instructions[i]!;
133 - const value = evaluateInstruction(fn.env, constants, instr);
132 + const value = evaluateInstruction(constants, instr);
133 if (value !== null) {
134 constants.set(instr.lvalue.identifier.id, value);
135 }
@@ -223,7 +222,6 @@ function evaluatePhi(phi: Phi, constants: Constants): Constant | null {
222 }
223
224 function evaluateInstruction(
226 - env: Environment,
225 constants: Constants,
226 instr: Instruction,
227 ): Constant | null {