Skip to content

Commit 708f2a1

Browse files
authored
Merge pull request The-OpenROAD-Project#9627 from hzeller/feature-20260304-remove-unused-param
Remove unused paramters in constructors.
2 parents 9f0a77d + 79778e5 commit 708f2a1

File tree

18 files changed

+12
-32
lines changed

18 files changed

+12
-32
lines changed

src/cts/src/TechChar.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ using utl::CTS;
4747
TechChar::TechChar(CtsOptions* options,
4848
odb::dbDatabase* db,
4949
sta::dbSta* sta,
50-
rsz::Resizer* /*resizer not-used*/,
5150
est::EstimateParasitics* estimate_parasitics,
5251
sta::dbNetwork* db_network,
5352
utl::Logger* logger)
@@ -1298,7 +1297,7 @@ void TechChar::updateBufferTopologiesOld(TechChar::SolutionData& solution)
12981297
odb::dbInst* inst = solution.instVector[index];
12991298
inst->swapMaster(newBufMaster);
13001299
// clang-format off
1301-
--masterItr;
1300+
--masterItr;
13021301
debugPrint(logger_, CTS, "tech char", 1, "updateBufferTopologies swap "
13031302
"from {} to {}, index:{}",
13041303
*(masterItr), newBufMaster->getName(), index);

src/cts/src/TechChar.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,6 @@ class TechChar
134134
TechChar(CtsOptions* options,
135135
odb::dbDatabase* db,
136136
sta::dbSta* sta,
137-
rsz::Resizer* resizer,
138137
est::EstimateParasitics* estimate_parasitics,
139138
sta::dbNetwork* db_network,
140139
utl::Logger* logger);

src/cts/src/TritonCTS.cpp

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -243,13 +243,8 @@ void TritonCTS::setupCharacterization()
243243
options_->setMaxWl(block_->micronsToDbu(maxWlMicrons));
244244

245245
// A new characteriztion is always created.
246-
techChar_ = std::make_unique<TechChar>(options_,
247-
db_,
248-
openSta_,
249-
resizer_,
250-
estimate_parasitics_,
251-
network_,
252-
logger_);
246+
techChar_ = std::make_unique<TechChar>(
247+
options_, db_, openSta_, estimate_parasitics_, network_, logger_);
253248
techChar_->create();
254249

255250
// Also resets metrics everytime the setup is done

src/cts/test/cts_unittest.cc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,7 @@ TEST(SinkClusteringTest, ZeroHeightRegion)
7979
// Setup
8080
utl::Logger logger;
8181
CtsOptions options(&logger, nullptr);
82-
TechChar techChar(
83-
&options, nullptr, nullptr, nullptr, nullptr, nullptr, &logger);
82+
TechChar techChar(&options, nullptr, nullptr, nullptr, nullptr, &logger);
8483
Clock net("clock", "clock", "clock", 0, 0);
8584
HTreeBuilder HTree(&options, net, nullptr, &logger, nullptr);
8685
SinkClustering clustering(&options, &techChar, &HTree);

src/dpl/src/Opendp.i

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ set_debug_cmd(float min_displacement,
110110
opendp->setDeepIterativePlacement(deep_iterative_placement);
111111
if (dpl::Graphics::guiActive()) {
112112
std::unique_ptr<DplObserver> graphics = std::make_unique<dpl::Graphics>(
113-
opendp, min_displacement, debug_instance, paint_pixels);
113+
opendp, debug_instance, paint_pixels);
114114
opendp->setDebug(graphics);
115115
}
116116
}

src/dpl/src/graphics/Graphics.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
namespace dpl {
2020

2121
Graphics::Graphics(Opendp* dp,
22-
float /*min_displacement not-used*/,
2322
const odb::dbInst* debug_instance,
2423
bool paint_pixels)
2524
: dp_(dp), debug_instance_(debug_instance), paint_pixels_(paint_pixels)

src/dpl/src/graphics/Graphics.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ class Graphics : public gui::Renderer, public DplObserver
2020
{
2121
public:
2222
Graphics(Opendp* dp,
23-
float min_displacement,
2423
const odb::dbInst* debug_instance,
2524
bool paint_pixels = true);
2625
~Graphics() override = default;

src/grt/src/cugr/src/CUGR.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ void CUGR::init(const int min_routing_layer,
5959
{
6060
design_ = std::make_unique<Design>(db_,
6161
logger_,
62-
sta_,
6362
constants_,
6463
min_routing_layer,
6564
max_routing_layer,

src/grt/src/cugr/src/Design.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ namespace grt {
1919

2020
Design::Design(odb::dbDatabase* db,
2121
utl::Logger* logger,
22-
sta::dbSta* /*not-used*/,
2322
const Constants& constants,
2423
const int min_routing_layer,
2524
const int max_routing_layer,

src/grt/src/cugr/src/Design.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ class Design
3535
public:
3636
Design(odb::dbDatabase* db,
3737
utl::Logger* logger,
38-
sta::dbSta* sta,
3938
const Constants& constants,
4039
int min_routing_layer,
4140
int max_routing_layer,

0 commit comments

Comments
 (0)