Skip to content

Commit 4b80269

Browse files
committed
Removed redundant terminal clear code in net merge APIs
Signed-off-by: Jaehyun Kim <[email protected]>
1 parent d882451 commit 4b80269

File tree

2 files changed

+0
-12
lines changed

2 files changed

+0
-12
lines changed

src/odb/src/db/dbModNet.cpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -569,13 +569,6 @@ void dbModNet::mergeModNet(dbModNet* in_modnet)
569569
for (dbModBTerm* modbterm : modbterms) {
570570
modbterm->connect(this);
571571
}
572-
573-
// 2. Clear the terminals of in_modnet to avoid dangling pointers.
574-
_dbModNet* _in_modnet = reinterpret_cast<_dbModNet*>(in_modnet);
575-
_in_modnet->_iterms.clear();
576-
_in_modnet->_bterms.clear();
577-
_in_modnet->_moditerms.clear();
578-
_in_modnet->_modbterms.clear();
579572
}
580573

581574
void dbModNet::mergeNet(dbNet* in_net)

src/odb/src/db/dbNet.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2299,11 +2299,6 @@ void dbNet::mergeNet(dbNet* in_net)
22992299
for (dbBTerm* bterm : bterms) {
23002300
bterm->connect(this);
23012301
}
2302-
2303-
// 2. Clear the terminals of in_net to avoid dangling pointers.
2304-
_dbNet* _in_net = reinterpret_cast<_dbNet*>(in_net);
2305-
_in_net->_iterms.clear();
2306-
_in_net->_bterms.clear();
23072302
}
23082303

23092304
void dbNet::markNets(std::vector<dbNet*>& nets, dbBlock* block, bool mk)

0 commit comments

Comments
 (0)