summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/CSS/Parser/StyleRules.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Libraries/LibWeb/CSS/Parser/StyleRules.cpp')
-rw-r--r--Userland/Libraries/LibWeb/CSS/Parser/StyleRules.cpp28
1 files changed, 0 insertions, 28 deletions
diff --git a/Userland/Libraries/LibWeb/CSS/Parser/StyleRules.cpp b/Userland/Libraries/LibWeb/CSS/Parser/StyleRules.cpp
index cfd4012ccd..ca71929a75 100644
--- a/Userland/Libraries/LibWeb/CSS/Parser/StyleRules.cpp
+++ b/Userland/Libraries/LibWeb/CSS/Parser/StyleRules.cpp
@@ -15,18 +15,6 @@
namespace Web::CSS {
-DeclarationOrAtRule::DeclarationOrAtRule(RefPtr<StyleRule> at)
- : m_type(DeclarationType::At)
- , m_at(move(at))
-{
-}
-DeclarationOrAtRule::DeclarationOrAtRule(Declaration declaration)
- : m_type(DeclarationType::Declaration)
- , m_declaration(move(declaration))
-{
-}
-DeclarationOrAtRule::~DeclarationOrAtRule() = default;
-
StyleRule::StyleRule(StyleRule::Type type)
: m_type(type)
{
@@ -46,22 +34,6 @@ void append_with_to_string(StringBuilder& builder, SeparatorType& separator, Col
}
}
-String DeclarationOrAtRule::to_string() const
-{
- StringBuilder builder;
- switch (m_type) {
- default:
- case DeclarationType::At:
- builder.append(m_at->to_string());
- break;
- case DeclarationType::Declaration:
- builder.append(m_declaration.to_string());
- break;
- }
-
- return builder.to_string();
-}
-
String StyleRule::to_string() const
{
StringBuilder builder;