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 <bclayton@google.com>
Reviewed-by: dan sinclair <dsinclair@chromium.org>
This commit is contained in:
Ben Clayton 2020-12-07 22:15:57 +00:00 committed by Commit Bot service account
parent 602c025aa0
commit dec971328d
2 changed files with 1 additions and 10 deletions

View File

@ -52,11 +52,6 @@ class Struct : public Castable<Struct, Node> {
~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_; }

View File

@ -56,11 +56,7 @@ class StructMember : public Castable<StructMember, Node> {
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_; }