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:
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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue