Remove dead code, no functional change

This commit is contained in:
Geza Lore 2022-05-25 19:04:47 +01:00
parent 3a310f19f0
commit 160f3ee4a7
2 changed files with 0 additions and 5 deletions

View File

@ -1738,7 +1738,6 @@ void AstVoidDType::dumpSmall(std::ostream& str) const {
} }
void AstVarScope::dump(std::ostream& str) const { void AstVarScope::dump(std::ostream& str) const {
this->AstNode::dump(str); this->AstNode::dump(str);
if (isCircular()) str << " [CIRC]";
if (isTrace()) str << " [T]"; if (isTrace()) str << " [T]";
if (scopep()) str << " [scopep=" << reinterpret_cast<const void*>(scopep()) << "]"; if (scopep()) str << " [scopep=" << reinterpret_cast<const void*>(scopep()) << "]";
if (varp()) { if (varp()) {

View File

@ -2415,7 +2415,6 @@ class AstVarScope final : public AstNode {
private: private:
AstScope* m_scopep; // Scope variable is underneath AstScope* m_scopep; // Scope variable is underneath
AstVar* m_varp; // [AfterLink] Pointer to variable itself AstVar* m_varp; // [AfterLink] Pointer to variable itself
bool m_circular : 1; // Used in circular ordering dependency, need change detect
bool m_trace : 1; // Tracing is turned on for this scope bool m_trace : 1; // Tracing is turned on for this scope
public: public:
AstVarScope(FileLine* fl, AstScope* scopep, AstVar* varp) AstVarScope(FileLine* fl, AstScope* scopep, AstVar* varp)
@ -2424,7 +2423,6 @@ public:
, m_varp{varp} { , m_varp{varp} {
UASSERT_OBJ(scopep, fl, "Scope must be non-null"); UASSERT_OBJ(scopep, fl, "Scope must be non-null");
UASSERT_OBJ(varp, fl, "Var must be non-null"); UASSERT_OBJ(varp, fl, "Var must be non-null");
m_circular = false;
m_trace = true; m_trace = true;
dtypeFrom(varp); dtypeFrom(varp);
} }
@ -2451,8 +2449,6 @@ public:
// op1 = Calculation of value of variable, nullptr=complicated // op1 = Calculation of value of variable, nullptr=complicated
AstNode* valuep() const { return op1p(); } AstNode* valuep() const { return op1p(); }
void valuep(AstNode* valuep) { addOp1p(valuep); } void valuep(AstNode* valuep) { addOp1p(valuep); }
bool isCircular() const { return m_circular; }
void circular(bool flag) { m_circular = flag; }
bool isTrace() const { return m_trace; } bool isTrace() const { return m_trace; }
void trace(bool flag) { m_trace = flag; } void trace(bool flag) { m_trace = flag; }
}; };