1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 18:28:12 +00:00

LibWeb: Remove unused StyleProperties::clone() function

This commit is contained in:
Aliaksandr Kalenik 2023-12-09 17:49:36 +01:00 committed by Andreas Kling
parent a738c2b120
commit af13bd8af0
2 changed files with 0 additions and 17 deletions

View file

@ -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 };