remove accessors in ActionAST added for external serialization
This commit is contained in:
@@ -47,8 +47,6 @@ public:
|
||||
AST(const std::shared_ptr<ASTNode>& cond);
|
||||
Result eval(const Context& context) const;
|
||||
|
||||
std::shared_ptr<ASTNode> getCondition() const;
|
||||
|
||||
bool operator==(const AST& data) const;
|
||||
|
||||
template<class Serializer>
|
||||
|
||||
@@ -51,11 +51,6 @@ Action::Result AST::eval(const Action::Context& context) const {
|
||||
}
|
||||
|
||||
|
||||
std::shared_ptr<ASTNode> AST::getCondition() const {
|
||||
return condition;
|
||||
}
|
||||
|
||||
|
||||
bool AST::operator==(const AST& data) const {
|
||||
if ((condition && !data.condition) ||
|
||||
(!condition && data.condition))
|
||||
|
||||
Reference in New Issue
Block a user