From f6f898b6b6f85b5e2c4f5bc0c61b8465e72dc35e Mon Sep 17 00:00:00 2001 From: Thomas Lively Date: Fri, 15 Nov 2024 16:58:48 -0500 Subject: [NFC] Remove redundant [[nodiscard]] attributes (#7084) Now that Result and MaybeResult are annotated [[nodiscard]] at the type level, individual functions and methods that return these types do not need to be annotated [[nodiscard]] themselves. Remove the newly redundant annotations. --- src/wasm/wasm-ir-builder.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/wasm/wasm-ir-builder.cpp') diff --git a/src/wasm/wasm-ir-builder.cpp b/src/wasm/wasm-ir-builder.cpp index 398db68ff..0d46156be 100644 --- a/src/wasm/wasm-ir-builder.cpp +++ b/src/wasm/wasm-ir-builder.cpp @@ -366,7 +366,7 @@ struct IRBuilder::ChildPopper ChildPopper(IRBuilder& builder) : builder(builder) {} private: - [[nodiscard]] Result<> popConstrainedChildren(std::vector& children) { + Result<> popConstrainedChildren(std::vector& children) { auto& scope = builder.getScope(); // Two-part indices into the stack of available expressions and the vector -- cgit v1.2.3