From fc7444e35b01864ebefc783d9154794c0d91aadc Mon Sep 17 00:00:00 2001 From: Ryszard Rozak Date: Mon, 30 Oct 2023 11:35:05 +0100 Subject: [PATCH] Remove a special if for function variables Signed-off-by: Ryszard Rozak --- src/V3LinkParse.cpp | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/V3LinkParse.cpp b/src/V3LinkParse.cpp index fc1f9fcfc0..aa442f17db 100644 --- a/src/V3LinkParse.cpp +++ b/src/V3LinkParse.cpp @@ -292,15 +292,6 @@ class LinkParseVisitor final : public VNVisitor { nodep->v3warn(STATICVAR, "Static variable with assignment declaration declared in a " "loop converted to automatic"); } - if (m_ftaskp) { - bool classMethod = m_ftaskp->classMethod(); - if (!classMethod) { - AstClassOrPackageRef* const pkgrefp - = VN_CAST(m_ftaskp->classOrPackagep(), ClassOrPackageRef); - if (pkgrefp && VN_IS(pkgrefp->classOrPackagep(), Class)) classMethod = true; - } - if (nodep->lifetime().isNone()) nodep->lifetime(m_ftaskp->lifetime()); - } if (nodep->lifetime().isNone() && nodep->varType() != VVarType::PORT) { nodep->lifetime(m_lifetime); }