Skip to content

Commit

Permalink
AstOperatorNode: remove dtor and default ctor
Browse files Browse the repository at this point in the history
They don't enforce the new invariant.
  • Loading branch information
hainest committed Oct 30, 2023
1 parent a7b3d49 commit 6abd7f8
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions dyninstAPI/src/ast.h
Expand Up @@ -534,12 +534,6 @@ class AstOperatorNode : public AstNode {
public:

AstOperatorNode(opCode opC, AstNodePtr l, AstNodePtr r = AstNodePtr(), AstNodePtr e = AstNodePtr());

~AstOperatorNode() {
//printf("at ~AstOperatorode()\n");
//debugPrint();
}


virtual std::string format(std::string indent);
virtual int costHelper(enum CostStyleType costStyle) const;
Expand Down Expand Up @@ -572,7 +566,6 @@ class AstOperatorNode : public AstNode {

bool generateOptimizedAssignment(codeGen &gen, int size, bool noCost);

AstOperatorNode() {}
opCode op{};
AstNodePtr loperand;
AstNodePtr roperand;
Expand Down

0 comments on commit 6abd7f8

Please sign in to comment.