[ast] Remove unused constructors and setters.

This CL removes unused default constructors and various set methods
from the AST classes where they are not longer required.

Change-Id: Ic437911c62d8c9e4354a1fa6bdc8483ce7511daf
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/34641
Auto-Submit: dan sinclair <dsinclair@chromium.org>
Reviewed-by: Ben Clayton <bclayton@google.com>
Commit-Queue: dan sinclair <dsinclair@chromium.org>
This commit is contained in:
dan sinclair
2020-12-02 14:31:38 +00:00
committed by Commit Bot service account
parent fb54145b6f
commit 4d28b27935
71 changed files with 189 additions and 376 deletions

View File

@@ -14,6 +14,7 @@
#include "src/scope_stack.h"
#include "gtest/gtest.h"
#include "src/ast/type/f32_type.h"
#include "src/ast/variable.h"
namespace tint {
@@ -31,7 +32,8 @@ TEST_F(ScopeStackTest, Global) {
}
TEST_F(ScopeStackTest, Global_SetWithPointer) {
ast::Variable v;
ast::type::F32 f32;
ast::Variable v("test", ast::StorageClass::kNone, &f32);
v.set_name("my_var");
ScopeStack<ast::Variable*> s;