LibWeb: Remove old parse_length(ComponentValue const&) method

This commit is contained in:
Sam Atkins 2023-12-28 17:49:06 +00:00 committed by Andreas Kling
commit 8b69f41bcd
Notes: sideshowbarker 2024-07-16 23:57:20 +09:00
2 changed files with 0 additions and 13 deletions

View file

@ -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();