From b548398c6cef8c91542685aa66646f243f9f1fc0 Mon Sep 17 00:00:00 2001 From: James Cherry Date: Wed, 29 Jul 2026 08:57:06 -0700 Subject: [PATCH] WriteSpice::gatePortValues unused rm Instance arg Signed-off-by: James Cherry --- spice/WriteSpice.cc | 6 ++---- spice/WriteSpice.hh | 3 +-- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/spice/WriteSpice.cc b/spice/WriteSpice.cc index e3aafb53..e04d8967 100644 --- a/spice/WriteSpice.cc +++ b/spice/WriteSpice.cc @@ -766,7 +766,6 @@ WriteSpice::gatePortValues(const Pin *input_pin, bool &is_clked) { is_clked = false; - const Instance *inst = network_->instance(input_pin); const LibertyPort *input_port = network_->libertyPort(input_pin); const LibertyPort *drvr_port = network_->libertyPort(drvr_pin); 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()) regPortValues(input_pin, drvr_rf, drvr_port, drvr_func, port_values, is_clked); 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 -WriteSpice::gatePortValues(const Instance *, - const FuncExpr *expr, +WriteSpice::gatePortValues(const FuncExpr *expr, const LibertyPort *input_port, const RiseFall *input_rf, const RiseFall *drvr_rf, diff --git a/spice/WriteSpice.hh b/spice/WriteSpice.hh index b1349d15..5cfb5d6b 100644 --- a/spice/WriteSpice.hh +++ b/spice/WriteSpice.hh @@ -153,8 +153,7 @@ protected: // Return values. PortLogicValues &port_values, bool &is_clked); - void gatePortValues(const Instance *inst, - const FuncExpr *expr, + void gatePortValues(const FuncExpr *expr, const LibertyPort *input_port, const RiseFall *input_rf, const RiseFall *drvr_rf,