From bdfbaac2e62c28e6a0eebbe18ec3b93ddf975b7c Mon Sep 17 00:00:00 2001 From: James Cherry Date: Thu, 17 Sep 2020 20:00:56 -0700 Subject: [PATCH] rm ClkInfo::crprClkPin --- include/sta/ClkInfo.hh | 3 --- search/ClkInfo.cc | 13 ++----------- 2 files changed, 2 insertions(+), 14 deletions(-) diff --git a/include/sta/ClkInfo.hh b/include/sta/ClkInfo.hh index afbbdb1b..02db3a4d 100644 --- a/include/sta/ClkInfo.hh +++ b/include/sta/ClkInfo.hh @@ -59,10 +59,7 @@ public: // crpr resolution. PathVertexRep &crprClkPath() { return crpr_clk_path_; } const PathVertexRep &crprClkPath() const { return crpr_clk_path_; } - const Pin *crprClkPin(const StaState *sta) const; - // Much faster than crprClkPin. VertexId crprClkVertexId() const; - // Much faster than crprClkPin != nullptr bool hasCrprClkPin() const { return !crpr_clk_path_.isNull(); } bool refsFilter(const StaState *sta) const; // This clk_info/tag is used for a generated clock source path. diff --git a/search/ClkInfo.cc b/search/ClkInfo.cc index f8b0c5e0..62d81b41 100644 --- a/search/ClkInfo.cc +++ b/search/ClkInfo.cc @@ -129,8 +129,8 @@ ClkInfo::asString(const StaState *sta) const str += network->pathName(clk_src_); } - const Pin *crpr_clk_pin = crprClkPin(sta); - if (crpr_clk_pin) { + if (!crpr_clk_path_.isNull()) { + const Pin *crpr_clk_pin = crpr_clk_path_.vertex(sta)->pin(); str += " crpr_pin "; str += network->pathName(crpr_clk_pin); } @@ -161,15 +161,6 @@ ClkInfo::pulseClkSense() const return nullptr; } -const Pin * -ClkInfo::crprClkPin(const StaState *sta) const -{ - if (!crpr_clk_path_.isNull()) - return crpr_clk_path_.vertex(sta)->pin(); - else - return nullptr; -} - bool ClkInfo::refsFilter(const StaState *sta) const {