diff --git a/src/V3LinkParse.cpp b/src/V3LinkParse.cpp index 5b65d408eb3..e00e1f9ca7a 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); }