ast: Remove no-arg constructor from Node
Bug: tint:396 Bug: tint:390 Change-Id: I730738dd6bafa946dc66ee8a15c48b3a3f73e5fc Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/35164 Commit-Queue: Ben Clayton <bclayton@google.com> Reviewed-by: David Neto <dneto@google.com>
This commit is contained in:
parent
bcf37549c8
commit
ce33d42b41
|
@ -23,6 +23,8 @@ namespace ast {
|
|||
namespace {
|
||||
|
||||
struct Cloneable : public Castable<Cloneable, Node> {
|
||||
Cloneable() : Base(Source{}) {}
|
||||
|
||||
Cloneable* a = nullptr;
|
||||
Cloneable* b = nullptr;
|
||||
Cloneable* c = nullptr;
|
||||
|
|
|
@ -21,8 +21,6 @@ TINT_INSTANTIATE_CLASS_ID(tint::ast::Node);
|
|||
namespace tint {
|
||||
namespace ast {
|
||||
|
||||
Node::Node() = default;
|
||||
|
||||
Node::Node(const Source& source) : source_(source) {}
|
||||
|
||||
Node::Node(Node&&) = default;
|
||||
|
|
|
@ -61,8 +61,6 @@ class Node : public Castable<Node> {
|
|||
std::string str() const;
|
||||
|
||||
protected:
|
||||
/// Create a new node
|
||||
Node();
|
||||
/// Create a new node
|
||||
/// @param source the input source for the node
|
||||
explicit Node(const Source& source);
|
||||
|
|
Loading…
Reference in New Issue