diff options
author | Andreas Kling <kling@serenityos.org> | 2021-10-28 01:52:53 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-10-28 12:53:31 +0200 |
commit | 84b15cc7b196375dc7e1a9d7deaee7d8df87bb06 (patch) | |
tree | 39816f88965bb56fd55683ad46124b1444392322 | |
parent | 5c132724ea93117a367f280a558980df828b4440 (diff) | |
download | serenity-84b15cc7b196375dc7e1a9d7deaee7d8df87bb06.zip |
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.
-rw-r--r-- | Userland/Libraries/LibWeb/CSS/StyleProperties.cpp | 5 | ||||
-rw-r--r-- | Userland/Libraries/LibWeb/CSS/StyleProperties.h | 1 |
2 files changed, 0 insertions, 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<StyleValue> 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<NonnullRefPtr<StyleValue>> 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<CSS::PropertyID, NonnullRefPtr<StyleValue>> const& properties() const { return m_property_values; } void set_property(CSS::PropertyID, NonnullRefPtr<StyleValue> value); - void set_property(CSS::PropertyID, const StringView&); Optional<NonnullRefPtr<StyleValue>> property(CSS::PropertyID) const; Length length_or_fallback(CSS::PropertyID, const Length& fallback) const; |