1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 16:38:10 +00:00

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
parent 0811a39392
commit 8b69f41bcd
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();