summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Atkins <atkinssj@serenityos.org>2022-03-30 16:50:47 +0100
committerAndreas Kling <kling@serenityos.org>2022-03-30 18:43:07 +0200
commit9a60b697aac6355c11fc86e9db0b8ad61a2a96e9 (patch)
treebb0a1f1300594632b44878bb3296d1e67d1e37df
parentcd199d9d06b1ca6bfa977cc236e26b6184e6276a (diff)
downloadserenity-9a60b697aac6355c11fc86e9db0b8ad61a2a96e9.zip
LibWeb: Remove redundant `[[nodiscard]]` from CSS Parser methods
Optional and smart-pointers are already `[[nodiscard]]` so functions returning them do not need to be declared as such.
-rw-r--r--Userland/Libraries/LibWeb/CSS/Parser/Parser.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/Userland/Libraries/LibWeb/CSS/Parser/Parser.h b/Userland/Libraries/LibWeb/CSS/Parser/Parser.h
index 3c3922a607..dd24d7235a 100644
--- a/Userland/Libraries/LibWeb/CSS/Parser/Parser.h
+++ b/Userland/Libraries/LibWeb/CSS/Parser/Parser.h
@@ -186,27 +186,27 @@ private:
template<typename T>
[[nodiscard]] NonnullRefPtr<StyleRule> consume_an_at_rule(TokenStream<T>&);
template<typename T>
- [[nodiscard]] RefPtr<StyleRule> consume_a_qualified_rule(TokenStream<T>&);
+ RefPtr<StyleRule> consume_a_qualified_rule(TokenStream<T>&);
template<typename T>
[[nodiscard]] Vector<DeclarationOrAtRule> consume_a_style_blocks_contents(TokenStream<T>&);
template<typename T>
[[nodiscard]] Vector<DeclarationOrAtRule> consume_a_list_of_declarations(TokenStream<T>&);
template<typename T>
- [[nodiscard]] Optional<StyleDeclarationRule> consume_a_declaration(TokenStream<T>&);
+ Optional<StyleDeclarationRule> consume_a_declaration(TokenStream<T>&);
template<typename T>
[[nodiscard]] StyleComponentValueRule consume_a_component_value(TokenStream<T>&);
template<typename T>
- [[nodiscard]] NonnullRefPtr<StyleBlockRule> consume_a_simple_block(TokenStream<T>&);
+ NonnullRefPtr<StyleBlockRule> consume_a_simple_block(TokenStream<T>&);
template<typename T>
- [[nodiscard]] NonnullRefPtr<StyleFunctionRule> consume_a_function(TokenStream<T>&);
+ NonnullRefPtr<StyleFunctionRule> consume_a_function(TokenStream<T>&);
- [[nodiscard]] Optional<GeneralEnclosed> parse_general_enclosed(TokenStream<StyleComponentValueRule>&);
+ Optional<GeneralEnclosed> parse_general_enclosed(TokenStream<StyleComponentValueRule>&);
RefPtr<CSSRule> parse_font_face_rule(TokenStream<StyleComponentValueRule>&);
- [[nodiscard]] RefPtr<CSSRule> convert_to_rule(NonnullRefPtr<StyleRule>);
- [[nodiscard]] RefPtr<PropertyOwningCSSStyleDeclaration> convert_to_style_declaration(Vector<DeclarationOrAtRule> declarations);
- [[nodiscard]] Optional<StyleProperty> convert_to_style_property(StyleDeclarationRule const&);
+ RefPtr<CSSRule> convert_to_rule(NonnullRefPtr<StyleRule>);
+ RefPtr<PropertyOwningCSSStyleDeclaration> convert_to_style_declaration(Vector<DeclarationOrAtRule> declarations);
+ Optional<StyleProperty> convert_to_style_property(StyleDeclarationRule const&);
class Dimension {
public: