From dec971328d984d9a520aafa7e2f2b5ab43c5d6e2 Mon Sep 17 00:00:00 2001 From: Ben Clayton Date: Mon, 7 Dec 2020 22:15:57 +0000 Subject: [PATCH] ast: Remove unused Struct::set_decorations() Bug: tint:390 Change-Id: If0aeb618ef15c64e7379501ec88a448bc4d7e015 Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/35013 Commit-Queue: Ben Clayton Reviewed-by: dan sinclair --- src/ast/struct.h | 5 ----- src/ast/struct_member.h | 6 +----- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/src/ast/struct.h b/src/ast/struct.h index 5dc31a4f4c..f9f29ab28e 100644 --- a/src/ast/struct.h +++ b/src/ast/struct.h @@ -52,11 +52,6 @@ class Struct : public Castable { ~Struct() override; - /// Sets the struct decoration - /// @param decos the list of decorations to set - void set_decorations(StructDecorationList decos) { - decorations_ = std::move(decos); - } /// @returns the struct decorations const StructDecorationList& decorations() const { return decorations_; } diff --git a/src/ast/struct_member.h b/src/ast/struct_member.h index 406476701c..bf9ea2d1d9 100644 --- a/src/ast/struct_member.h +++ b/src/ast/struct_member.h @@ -56,11 +56,7 @@ class StructMember : public Castable { const std::string& name() const { return name_; } /// @returns the type type::Type* type() const { return type_; } - /// Sets the decorations - /// @param decorations the decorations - void set_decorations(StructMemberDecorationList decorations) { - decorations_ = std::move(decorations); - } + /// @returns the decorations const StructMemberDecorationList& decorations() const { return decorations_; }