diff --git a/Userland/Libraries/LibWeb/CSS/StyleProperties.cpp b/Userland/Libraries/LibWeb/CSS/StyleProperties.cpp index ce70910be9..1ac1151790 100644 --- a/Userland/Libraries/LibWeb/CSS/StyleProperties.cpp +++ b/Userland/Libraries/LibWeb/CSS/StyleProperties.cpp @@ -35,21 +35,6 @@ namespace Web::CSS { -StyleProperties::StyleProperties(StyleProperties const& other) - : m_property_values(other.m_property_values) -{ - if (other.m_font) { - m_font = other.m_font->clone(); - } else { - m_font = nullptr; - } -} - -NonnullRefPtr StyleProperties::clone() const -{ - return adopt_ref(*new StyleProperties(*this)); -} - void StyleProperties::set_property(CSS::PropertyID id, NonnullRefPtr value, CSS::CSSStyleDeclaration const* source_declaration) { m_property_values[to_underlying(id)] = StyleAndSourceDeclaration { move(value), source_declaration }; diff --git a/Userland/Libraries/LibWeb/CSS/StyleProperties.h b/Userland/Libraries/LibWeb/CSS/StyleProperties.h index 29f7eac1b7..be587b0a82 100644 --- a/Userland/Libraries/LibWeb/CSS/StyleProperties.h +++ b/Userland/Libraries/LibWeb/CSS/StyleProperties.h @@ -20,8 +20,6 @@ class StyleProperties : public RefCounted { public: StyleProperties() = default; - explicit StyleProperties(StyleProperties const&); - static NonnullRefPtr create() { return adopt_ref(*new StyleProperties); } NonnullRefPtr clone() const;