From d5e9e7cd2b74979866dfc8a10b4876630b04b543 Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Tue, 19 Apr 2011 19:02:03 -0500 Subject: [PATCH] Remove dead code --- src/V3Width.cpp | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/src/V3Width.cpp b/src/V3Width.cpp index 4673b6cb6..b0ab5a2b9 100644 --- a/src/V3Width.cpp +++ b/src/V3Width.cpp @@ -390,47 +390,20 @@ private: // Just a quick check as after V3Param these nodes instead are AstSel's AstNode* selp = V3Width::widthSelNoIterEdit(nodep); if (selp!=nodep) { nodep=NULL; selp->iterate(*this,vup); return; } nodep->v3fatalSrc("AstSelBit should disappear after widthSel"); - if (vup->c()->prelim()) { - nodep->lhsp()->iterateAndNext(*this,WidthVP(ANYSIZE,0,BOTH).p()); // from - nodep->rhsp()->iterateAndNext(*this,WidthVP(ANYSIZE,0,BOTH).p()); // bit - } } virtual void visit(AstSelExtract* nodep, AstNUser* vup) { // Just a quick check as after V3Param these nodes instead are AstSel's AstNode* selp = V3Width::widthSelNoIterEdit(nodep); if (selp!=nodep) { nodep=NULL; selp->iterate(*this,vup); return; } nodep->v3fatalSrc("AstSelExtract should disappear after widthSel"); - if (vup->c()->prelim()) { - nodep->fromp()->iterateAndNext(*this,WidthVP(ANYSIZE,0,BOTH).p()); - nodep->msbp()->iterateAndNext(*this,WidthVP(ANYSIZE,0,BOTH).p()); - nodep->lsbp()->iterateAndNext(*this,WidthVP(ANYSIZE,0,BOTH).p()); - } } virtual void visit(AstSelPlus* nodep, AstNUser* vup) { AstNode* selp = V3Width::widthSelNoIterEdit(nodep); if (selp!=nodep) { nodep=NULL; selp->iterate(*this,vup); return; } nodep->v3fatalSrc("AstSelPlus should disappear after widthSel"); - if (vup->c()->prelim()) { - nodep->fromp()->iterateAndNext(*this,WidthVP(ANYSIZE,0,BOTH).p()); - nodep->bitp()->iterateAndNext(*this,WidthVP(ANYSIZE,0,BOTH).p()); - nodep->widthp()->iterateAndNext(*this,WidthVP(ANYSIZE,0,BOTH).p()); - if (AstConst* constp = nodep->widthp()->castConst()) { - int width = constp->toSInt(); - nodep->width(width,width); - } - } } virtual void visit(AstSelMinus* nodep, AstNUser* vup) { AstNode* selp = V3Width::widthSelNoIterEdit(nodep); if (selp!=nodep) { nodep=NULL; selp->iterate(*this,vup); return; } nodep->v3fatalSrc("AstSelMinus should disappear after widthSel"); - if (vup->c()->prelim()) { - nodep->fromp()->iterateAndNext(*this,WidthVP(ANYSIZE,0,BOTH).p()); - nodep->bitp()->iterateAndNext(*this,WidthVP(ANYSIZE,0,BOTH).p()); - nodep->widthp()->iterateAndNext(*this,WidthVP(ANYSIZE,0,BOTH).p()); - if (AstConst* constp = nodep->widthp()->castConst()) { - int width = constp->toSInt(); - nodep->width(width,width); - } - } } virtual void visit(AstExtend* nodep, AstNUser* vup) {