mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-21 18:59:21 +00:00
[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:
committed by
Commit Bot service account
parent
fb54145b6f
commit
4d28b27935
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user