Skip to content

Commit 32174f7

Browse files
authored
Merge pull request #8069 from AcKoucher/mpl-redundant-loop
mpl: remove redundant loop
2 parents 841687e + 5e142d4 commit 32174f7

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

src/mpl/src/hier_rtlmp.cpp

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1351,17 +1351,6 @@ void HierRTLMP::placeChildren(Cluster* parent)
13511351
for (auto& cluster : parent->getChildren()) {
13521352
clustering_engine_->updateInstancesAssociation(cluster.get());
13531353
}
1354-
// Place children clusters
1355-
// map children cluster to soft macro
1356-
for (auto& cluster : parent->getChildren()) {
1357-
if (cluster->isIOCluster()) { // ignore all the io clusters
1358-
continue;
1359-
}
1360-
auto soft_macro = std::make_unique<SoftMacro>(cluster.get());
1361-
// no memory leakage, beacuse we set the soft macro, the old one
1362-
// will be deleted
1363-
cluster->setSoftMacro(std::move(soft_macro));
1364-
}
13651354

13661355
const Rect outline = parent->getBBox();
13671356
if (graphics_) {

0 commit comments

Comments
 (0)