LibWeb/CSS: Remove unused <an+b># code for pseudo-classes

This reverts e7890429aa and partly reverts
a59c15481f.

The one pseudo-class that accepted multiple of these was :heading(), and
since that got changed to take integers instead, there's no need to keep
this extra complexity (and memory usage) around.
This commit is contained in:
Sam Atkins 2025-08-28 10:44:17 +01:00 committed by Jelle Raaijmakers
parent d461e96f40
commit f93819eda2
Notes: github-actions[bot] 2025-08-28 10:41:23 +00:00
6 changed files with 8 additions and 62 deletions

View file

@ -70,7 +70,6 @@ struct PseudoClassMetadata {
enum class ParameterType {
None,
ANPlusB,
ANPlusBList,
ANPlusBOf,
CompoundSelector,
ForgivingSelectorList,
@ -170,8 +169,6 @@ PseudoClassMetadata pseudo_class_metadata(PseudoClass pseudo_class)
if (is_valid_as_function) {
if (argument_string == "<an+b>"sv) {
parameter_type = "ANPlusB"_string;
} else if (argument_string == "<an+b>#"sv) {
parameter_type = "ANPlusBList"_string;
} else if (argument_string == "<an+b-of>"sv) {
parameter_type = "ANPlusBOf"_string;
} else if (argument_string == "<compound-selector>"sv) {