mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 22:07:35 +00:00
LibWeb: Remove old parse_length(ComponentValue const&) method
This commit is contained in:
parent
0811a39392
commit
8b69f41bcd
2 changed files with 0 additions and 13 deletions
|
@ -1842,18 +1842,6 @@ Optional<LengthOrCalculated> Parser::parse_source_size_value(TokenStream<Compone
|
|||
return parse_length(tokens);
|
||||
}
|
||||
|
||||
Optional<Length> Parser::parse_length(ComponentValue const& component_value)
|
||||
{
|
||||
auto dimension = parse_dimension(component_value);
|
||||
if (!dimension.has_value())
|
||||
return {};
|
||||
|
||||
if (dimension->is_length())
|
||||
return dimension->length();
|
||||
|
||||
return {};
|
||||
}
|
||||
|
||||
Optional<Ratio> Parser::parse_ratio(TokenStream<ComponentValue>& tokens)
|
||||
{
|
||||
auto transaction = tokens.begin_transaction();
|
||||
|
|
|
@ -186,7 +186,6 @@ private:
|
|||
|
||||
Optional<Color> parse_rgb_or_hsl_color(StringView function_name, Vector<ComponentValue> const&);
|
||||
Optional<Color> parse_color(ComponentValue const&);
|
||||
Optional<Length> parse_length(ComponentValue const&);
|
||||
Optional<LengthOrCalculated> parse_source_size_value(TokenStream<ComponentValue>&);
|
||||
Optional<Ratio> parse_ratio(TokenStream<ComponentValue>&);
|
||||
Optional<Gfx::UnicodeRange> parse_unicode_range(TokenStream<ComponentValue>&);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue