Skip to content

Commit ae8b83b

Browse files
committed
Followon fixes from removing unused int from extMain constructor, removed defined-but-not-used variable base.
Signed-off-by: Christopher D. Leary <[email protected]>
1 parent d537c1e commit ae8b83b

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

src/rcx/src/ext.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ extern int Rcx_Init(Tcl_Interp* interp);
5353

5454
Ext::Ext()
5555
: odb::ZInterface(),
56-
_ext(std::make_unique<extMain>(5))
56+
_ext(std::make_unique<extMain>())
5757
{}
5858

5959
void Ext::init(Tcl_Interp* tcl_interp, odb::dbDatabase* db, Logger* logger)

src/rcx/src/extBenchDB.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -630,7 +630,6 @@ int extRCModel::writeBenchWires_DB(extMeasure* measure)
630630
uint WW2 = measure->_w2_nm;
631631
uint SS2 = measure->_s2_nm;
632632

633-
uint base;
634633
if (n > 1) {
635634
cnt++;
636635
measure->createNetSingleWire(_wireDirName, idCnt, WW, s_layout);
@@ -639,7 +638,6 @@ int extRCModel::writeBenchWires_DB(extMeasure* measure)
639638
cnt++;
640639
if (!measure->_diag) {
641640
measure->createNetSingleWire(_wireDirName, idCnt, WW, SS1);
642-
base = measure->_ll[measure->_dir] + WW / 2;
643641
idCnt++;
644642
cnt++;
645643
measure->createNetSingleWire(_wireDirName, idCnt, WW2, SS2);
@@ -665,7 +663,6 @@ int extRCModel::writeBenchWires_DB(extMeasure* measure)
665663
idCnt++;
666664
}
667665
} else {
668-
base = measure->_ll[measure->_dir] + WW / 2;
669666
cnt++;
670667
measure->createNetSingleWire(_wireDirName, 3, w_layout, s_layout);
671668
idCnt++;

src/rcx/src/extmain.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ void extMain::initExtractedCorners(dbBlock* block)
6363
{
6464
extMain* tmiExt = (extMain*) block->getExtmi();
6565
if (tmiExt == NULL) {
66-
tmiExt = new extMain(0);
66+
tmiExt = new extMain;
6767
tmiExt->init((dbDatabase*) block->getDataBase(), logger_);
6868
}
6969
if (tmiExt->_processCornerTable)
@@ -76,7 +76,7 @@ int extMain::getExtCornerIndex(dbBlock* block, const char* cornerName)
7676
{
7777
extMain* tmiExt = (extMain*) block->getExtmi();
7878
if (tmiExt == NULL) {
79-
tmiExt = new extMain(0);
79+
tmiExt = new extMain;
8080
tmiExt->init((dbDatabase*) block->getDataBase(), logger_);
8181
}
8282
int idx = tmiExt->getDbCornerIndex(cornerName);
@@ -165,7 +165,7 @@ void extMain::writeIncrementalSpef(std::vector<dbNet*>& buf_nets,
165165
{
166166
extMain* tmiExt = (extMain*) block->getExtmi();
167167
if (tmiExt == NULL) {
168-
tmiExt = new extMain(0);
168+
tmiExt = new extMain;
169169
tmiExt->init((dbDatabase*) block->getDataBase(), logger_);
170170
}
171171
tmiExt->writeIncrementalSpef(buf_nets,

0 commit comments

Comments
 (0)