Przeglądaj źródła

LibWeb: Remove unused `StyleProperties::clone()` function

Aliaksandr Kalenik 1 rok temu
rodzic
commit
af13bd8af0

+ 0 - 15
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> StyleProperties::clone() const
-{
-    return adopt_ref(*new StyleProperties(*this));
-}
-
 void StyleProperties::set_property(CSS::PropertyID id, NonnullRefPtr<StyleValue const> value, CSS::CSSStyleDeclaration const* source_declaration)
 {
     m_property_values[to_underlying(id)] = StyleAndSourceDeclaration { move(value), source_declaration };

+ 0 - 2
Userland/Libraries/LibWeb/CSS/StyleProperties.h

@@ -20,8 +20,6 @@ class StyleProperties : public RefCounted<StyleProperties> {
 public:
     StyleProperties() = default;
 
-    explicit StyleProperties(StyleProperties const&);
-
     static NonnullRefPtr<StyleProperties> create() { return adopt_ref(*new StyleProperties); }
 
     NonnullRefPtr<StyleProperties> clone() const;