mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 10:18:11 +00:00
LibWeb: Spec-comment parse_a_list_of_declarations()
The `parse_as_list_of_declarations()` public method is unused and will not be used by any user code so has been removed.
This commit is contained in:
parent
2aac9f9258
commit
bcf4254331
2 changed files with 5 additions and 7 deletions
|
@ -1965,18 +1965,16 @@ Optional<StyleDeclarationRule> Parser::parse_a_declaration(TokenStream<T>& token
|
|||
return {};
|
||||
}
|
||||
|
||||
Vector<DeclarationOrAtRule> Parser::parse_as_list_of_declarations()
|
||||
{
|
||||
return parse_a_list_of_declarations(m_token_stream);
|
||||
}
|
||||
|
||||
// 5.3.8. Parse a list of declarations
|
||||
// https://www.w3.org/TR/css-syntax-3/#parse-list-of-declarations
|
||||
template<typename T>
|
||||
Vector<DeclarationOrAtRule> Parser::parse_a_list_of_declarations(TokenStream<T>& tokens)
|
||||
{
|
||||
// To parse a list of declarations from input:
|
||||
|
||||
// 1. Normalize input, and set input to the result.
|
||||
// Note: This is done when initializing the Parser.
|
||||
|
||||
// 2. Consume a list of declarations from input, and return the result.
|
||||
return consume_a_list_of_declarations(tokens);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue