diff options
author | Sam Atkins <atkinssj@serenityos.org> | 2023-05-24 17:47:08 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2023-05-25 06:36:10 +0200 |
commit | c0e61f92c000c893e607f8e93b5991050e2a2c35 (patch) | |
tree | b083375db5a79ed576fa459131ae32a777870f24 /Userland/Libraries | |
parent | 7e8ed996c9f54e7a692e75fc535a86d7eee6d97f (diff) | |
download | serenity-c0e61f92c000c893e607f8e93b5991050e2a2c35.zip |
LibWeb: Remove now-unused `parse_css_value(ComponentValue)` method
:^)
Diffstat (limited to 'Userland/Libraries')
-rw-r--r-- | Userland/Libraries/LibWeb/CSS/Parser/Parser.cpp | 33 | ||||
-rw-r--r-- | Userland/Libraries/LibWeb/CSS/Parser/Parser.h | 1 |
2 files changed, 0 insertions, 34 deletions
diff --git a/Userland/Libraries/LibWeb/CSS/Parser/Parser.cpp b/Userland/Libraries/LibWeb/CSS/Parser/Parser.cpp index 73b87230dd..67c6e3f616 100644 --- a/Userland/Libraries/LibWeb/CSS/Parser/Parser.cpp +++ b/Userland/Libraries/LibWeb/CSS/Parser/Parser.cpp @@ -7332,39 +7332,6 @@ ErrorOr<Parser::PropertyAndValue> Parser::parse_css_value_for_properties(Readonl return PropertyAndValue { property_ids.first(), nullptr }; } -ErrorOr<RefPtr<StyleValue>> Parser::parse_css_value(ComponentValue const& component_value) -{ - if (auto builtin = TRY(parse_builtin_value(component_value))) - return builtin; - - if (auto dynamic = TRY(parse_dynamic_value(component_value))) - return dynamic; - - // We parse colors before numbers, to catch hashless hex colors. - if (auto color = TRY(parse_color_value(component_value))) - return color; - - if (auto dimension = TRY(parse_dimension_value(component_value))) - return dimension; - - if (auto numeric = TRY(parse_numeric_value(component_value))) - return numeric; - - if (auto identifier = TRY(parse_identifier_value(component_value))) - return identifier; - - if (auto string = TRY(parse_string_value(component_value))) - return string; - - if (auto image = TRY(parse_image_value(component_value))) - return image; - - if (auto rect = TRY(parse_rect_value(component_value))) - return rect; - - return nullptr; -} - Optional<Selector::SimpleSelector::ANPlusBPattern> Parser::parse_a_n_plus_b_pattern(TokenStream<ComponentValue>& values) { auto transaction = values.begin_transaction(); diff --git a/Userland/Libraries/LibWeb/CSS/Parser/Parser.h b/Userland/Libraries/LibWeb/CSS/Parser/Parser.h index b7c1ccaec1..0d3f744a26 100644 --- a/Userland/Libraries/LibWeb/CSS/Parser/Parser.h +++ b/Userland/Libraries/LibWeb/CSS/Parser/Parser.h @@ -286,7 +286,6 @@ private: RefPtr<StyleValue> style_value; }; ErrorOr<PropertyAndValue> parse_css_value_for_properties(ReadonlySpan<PropertyID>, TokenStream<ComponentValue>&); - ErrorOr<RefPtr<StyleValue>> parse_css_value(ComponentValue const&); ErrorOr<RefPtr<StyleValue>> parse_builtin_value(ComponentValue const&); ErrorOr<RefPtr<StyleValue>> parse_dynamic_value(ComponentValue const&); ErrorOr<RefPtr<CalculatedStyleValue>> parse_calculated_value(Vector<ComponentValue> const&); |