summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/CSS/Selector.cpp
diff options
context:
space:
mode:
authorSam Atkins <atkinssj@serenityos.org>2022-03-22 12:58:36 +0000
committerAndreas Kling <kling@serenityos.org>2022-03-22 15:47:36 +0100
commit31b24c2b297f603856b4850fb9568b5b91a75621 (patch)
tree50c04780038c618c9b8003318b68c3362444582e /Userland/Libraries/LibWeb/CSS/Selector.cpp
parentcbe2eaebaba51e4cdb57193a6e702ae84ba4ca7e (diff)
downloadserenity-31b24c2b297f603856b4850fb9568b5b91a75621.zip
LibWeb: Remove now-unused null values from Selector enums
Now that we use a Variant for the SimpleSelector's data, we don't need to instantiate empty structs or variables for the types that aren't used, and so we can remove `PseudoElement::None`, `PsuedoClass::Type::None` and `Attribute::MatchType::None`. Also, we now always initialize a SimpleSelector with a type, so `SimpleSelector::Type::Invalid` can go too.
Diffstat (limited to 'Userland/Libraries/LibWeb/CSS/Selector.cpp')
-rw-r--r--Userland/Libraries/LibWeb/CSS/Selector.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/Userland/Libraries/LibWeb/CSS/Selector.cpp b/Userland/Libraries/LibWeb/CSS/Selector.cpp
index f995728a97..98115e71c4 100644
--- a/Userland/Libraries/LibWeb/CSS/Selector.cpp
+++ b/Userland/Libraries/LibWeb/CSS/Selector.cpp
@@ -105,8 +105,6 @@ u32 Selector::specificity() const
case SimpleSelector::Type::Universal:
// ignore the universal selector
break;
- case SimpleSelector::Type::Invalid:
- break;
}
}
}