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_; }