mirror of
https://github.com/zebrajr/react.git
synced 2025-12-06 12:20:20 +01:00
[compiler][ez] Remove unused param (#31376)
This commit is contained in:
parent
aded0ef831
commit
02c0e824e4
|
|
@ -8,7 +8,6 @@
|
|||
import {isValidIdentifier} from '@babel/types';
|
||||
import {CompilerError} from '../CompilerError';
|
||||
import {
|
||||
Environment,
|
||||
GotoVariant,
|
||||
HIRFunction,
|
||||
IdentifierId,
|
||||
|
|
@ -130,7 +129,7 @@ function applyConstantPropagation(
|
|||
continue;
|
||||
}
|
||||
const instr = block.instructions[i]!;
|
||||
const value = evaluateInstruction(fn.env, constants, instr);
|
||||
const value = evaluateInstruction(constants, instr);
|
||||
if (value !== null) {
|
||||
constants.set(instr.lvalue.identifier.id, value);
|
||||
}
|
||||
|
|
@ -223,7 +222,6 @@ function evaluatePhi(phi: Phi, constants: Constants): Constant | null {
|
|||
}
|
||||
|
||||
function evaluateInstruction(
|
||||
env: Environment,
|
||||
constants: Constants,
|
||||
instr: Instruction,
|
||||
): Constant | null {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user