WriteSpice::gatePortValues unused rm Instance arg

Signed-off-by: James Cherry <cherry@CerezoBook.local>
This commit is contained in:
James Cherry 2026-07-29 08:57:06 -07:00
parent c00b847b20
commit b548398c6c
2 changed files with 3 additions and 6 deletions

View File

@ -766,7 +766,6 @@ WriteSpice::gatePortValues(const Pin *input_pin,
bool &is_clked) bool &is_clked)
{ {
is_clked = false; is_clked = false;
const Instance *inst = network_->instance(input_pin);
const LibertyPort *input_port = network_->libertyPort(input_pin); const LibertyPort *input_port = network_->libertyPort(input_pin);
const LibertyPort *drvr_port = network_->libertyPort(drvr_pin); const LibertyPort *drvr_port = network_->libertyPort(drvr_pin);
const FuncExpr *drvr_func = drvr_port->function(); const FuncExpr *drvr_func = drvr_port->function();
@ -774,13 +773,12 @@ WriteSpice::gatePortValues(const Pin *input_pin,
if (gate_edge && gate_edge->role()->genericRole() == TimingRole::regClkToQ()) if (gate_edge && gate_edge->role()->genericRole() == TimingRole::regClkToQ())
regPortValues(input_pin, drvr_rf, drvr_port, drvr_func, port_values, is_clked); regPortValues(input_pin, drvr_rf, drvr_port, drvr_func, port_values, is_clked);
else else
gatePortValues(inst, drvr_func, input_port, input_rf, drvr_rf, port_values); gatePortValues(drvr_func, input_port, input_rf, drvr_rf, port_values);
} }
} }
void void
WriteSpice::gatePortValues(const Instance *, WriteSpice::gatePortValues(const FuncExpr *expr,
const FuncExpr *expr,
const LibertyPort *input_port, const LibertyPort *input_port,
const RiseFall *input_rf, const RiseFall *input_rf,
const RiseFall *drvr_rf, const RiseFall *drvr_rf,

View File

@ -153,8 +153,7 @@ protected:
// Return values. // Return values.
PortLogicValues &port_values, PortLogicValues &port_values,
bool &is_clked); bool &is_clked);
void gatePortValues(const Instance *inst, void gatePortValues(const FuncExpr *expr,
const FuncExpr *expr,
const LibertyPort *input_port, const LibertyPort *input_port,
const RiseFall *input_rf, const RiseFall *input_rf,
const RiseFall *drvr_rf, const RiseFall *drvr_rf,