From 84b15cc7b196375dc7e1a9d7deaee7d8df87bb06 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Thu, 28 Oct 2021 01:52:53 +0200 Subject: LibWeb: Remove StyleProperties::set_property(PropertyID, StringView) This API has no more clients (and the last client that I just removed wasn't even using it right) so let's get rid of it. --- Userland/Libraries/LibWeb/CSS/StyleProperties.cpp | 5 ----- Userland/Libraries/LibWeb/CSS/StyleProperties.h | 1 - 2 files changed, 6 deletions(-) diff --git a/Userland/Libraries/LibWeb/CSS/StyleProperties.cpp b/Userland/Libraries/LibWeb/CSS/StyleProperties.cpp index 31e45961ac..c060f9de5d 100644 --- a/Userland/Libraries/LibWeb/CSS/StyleProperties.cpp +++ b/Userland/Libraries/LibWeb/CSS/StyleProperties.cpp @@ -39,11 +39,6 @@ void StyleProperties::set_property(CSS::PropertyID id, NonnullRefPtr m_property_values.set(id, move(value)); } -void StyleProperties::set_property(CSS::PropertyID id, const StringView& value) -{ - m_property_values.set(id, StringStyleValue::create(value)); -} - Optional> StyleProperties::property(CSS::PropertyID property_id) const { auto it = m_property_values.find(property_id); diff --git a/Userland/Libraries/LibWeb/CSS/StyleProperties.h b/Userland/Libraries/LibWeb/CSS/StyleProperties.h index 5115f931a7..6472f87208 100644 --- a/Userland/Libraries/LibWeb/CSS/StyleProperties.h +++ b/Userland/Libraries/LibWeb/CSS/StyleProperties.h @@ -37,7 +37,6 @@ public: HashMap> const& properties() const { return m_property_values; } void set_property(CSS::PropertyID, NonnullRefPtr value); - void set_property(CSS::PropertyID, const StringView&); Optional> property(CSS::PropertyID) const; Length length_or_fallback(CSS::PropertyID, const Length& fallback) const; -- cgit v1.2.3